在jsp里面不要瞎用<!-- -->注释
2013-07-11 12:17
239 查看
如图:
SEVERE: Servlet.service() for servlet jsp threw exceptionorg.apache.jasper.JasperException: /ch12/hellotag.jsp(7,46) Attempt to redefine the prefix holyshit to mldn_hello, when it was already defined as /WEB-INF/hellotag.tld in the current scope.
尼玛我搞了半天这个exception,原来是因为第一个@taglib没有被注释掉,我BLEEP!难道这就是传说中的很傻很天真?我还以为这个注释管用呢
后来发现,原来应该这么用:<%----%>
SEVERE: Servlet.service() for servlet jsp threw exceptionorg.apache.jasper.JasperException: /ch12/hellotag.jsp(7,46) Attempt to redefine the prefix holyshit to mldn_hello, when it was already defined as /WEB-INF/hellotag.tld in the current scope.
尼玛我搞了半天这个exception,原来是因为第一个@taglib没有被注释掉,我BLEEP!难道这就是传说中的很傻很天真?我还以为这个注释管用呢
后来发现,原来应该这么用:<%----%>
相关文章推荐
- jsp页面中有些div里面的内容用<!-- -->注释掉了,本以为是多余的,仔细一看还有slice() (上传过程等待效果)
- jsp中在option里面写<c:if></c:if>代码报错解决方案
- Jsp中注释<!-- --> 和 <%-- --%>的区别
- jsp中在option里面写<c:if></c:if>代码报错解决方案
- JSP中注释<!-- -->和<%-- --%>的区别
- jsp中的注释符号<!-- -->
- jsp两种注释区别,<%%>和<%!%>的区别
- 在JSP中看到"<!--"和"-->"包起来的代码,又不是注释,这个是什么意思呢?
- <a><a/> 标签里面不要有 <a><a/>
- jsp页面中注释 <!-- --> 和<%-- --%> 的区别
- 关于eclipse Oxygen 版本的JSP页面中option里面写<c:if>嵌套时报错
- 使用 JSP的 <jsp:include>不能加注释
- jsp两种注释区别,<%%>和<%!%>的区别
- eclipse-2017修复 jsp中在option里面写<c:if></c:if>代码报错解决
- <!--注释-->和<%--注释--%>有什么区别 (jsp页面与其相同)
- jsp中<>里面的东东
- JSP注释及scriptlet <%局部%><%!全局%><%=输出%>
- JSP注释 <%-- --%> 和 <!-- --> 的区别
- JSP页面中注释<!-- --> 和 <%-- --%>的区别
- JSP中注释<!-- --> 和 <%-- --%>的区别