servlet跳转JSP页面报错

luoshifu123 2017-02-13 09:40:35
]] Root cause of ServletException.
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /pages/timeout/batchTimeOut.jsp
batchTimeOut.jsp:4:2: Syntax error, insert "}" to complete ClassBody
String path = request.getContextPath();
^--------------------------------------
int currentPage = request.getAttribute("currentPage") == null ? 0 : Integer.parseInt(request.getAttribute("currentPage").toString());
--------------------------------------------------------------------------------------------------------------------------------------------^
batchTimeOut.jsp:533:55: Syntax error, insert "}" to complete Block
<td width="16px"><img src="<%=basePath %>tab/images/tab_20.gif" width="16px" height="35px" /></td>
^--------------------------------------------------------
</html>
------^
batchTimeOut.jsp:533:55: Syntax error, insert "else Statement" to complete IfStatement
<td width="16px"><img src="<%=basePath %>tab/images/tab_20.gif" width="16px" height="35px" /></td>
^--------------------------------------------------------
</html>
------^
batchTimeOut.jsp:533:55: Syntax error, insert "}" to complete Block
<td width="16px"><img src="<%=basePath %>tab/images/tab_20.gif" width="16px" height="35px" /></td>
^--------------------------------------------------------
</html>
------^
batchTimeOut.jsp:533:55: Syntax error on token "}", delete this token
<td width="16px"><img src="<%=basePath %>tab/images/tab_20.gif" width="16px" height="35px" /></td>
^--------------------------------------------------------
</html>
------^

at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:221)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:157)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:191)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
Truncated. see log file for complete stacktrace
>
...全文
148 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Defonds 2017-02-13
  • 打赏
  • 举报
回复
不要重复发帖:http://bbs.csdn.net/topics/392085590。 jsp java 代码缺个 "}" 号

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧