请教一个JSP异常问题
严重:Servlet.service()forservlet[jsp]incontextwithpath[/Test]threwexception[/index.jsp(...
严重: Servlet.service() for servlet [jsp] in context with path [/Test] threw exception [/index.jsp (line: 24, column: 26) attribute for %>" is not properly terminated] with root cause
org.apache.jasper.JasperException: /index.jsp (line: 24, column: 26) attribute for %>" is not properly terminated
==========================
代码是:
<li>
<c:if test="${username!=null}">欢迎您:${username}</c:if>
<c:if test="${username==null}"><a href="Test/login.jsp">没登陆呢</a></c:if>
</li>
================
如果是通过login.jsp成功登陆跳转到该index.jsp页面就没有问题.
直接敲index.jsp进入的话就是报这个错误.不知道为什么? 展开
org.apache.jasper.JasperException: /index.jsp (line: 24, column: 26) attribute for %>" is not properly terminated
==========================
代码是:
<li>
<c:if test="${username!=null}">欢迎您:${username}</c:if>
<c:if test="${username==null}"><a href="Test/login.jsp">没登陆呢</a></c:if>
</li>
================
如果是通过login.jsp成功登陆跳转到该index.jsp页面就没有问题.
直接敲index.jsp进入的话就是报这个错误.不知道为什么? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询