当前位置:我的异常网» Java Web开发»看不懂的异常提示啊
看不懂的异常提示啊
网友分享于:-09-12浏览:7次
看不懂的错误提示啊!!!!
写的一个JSP程序,运行时提示如下错误,实在是找不出哪里的错误。还请各位大侠们帮忙啊……
right.jsp代码如下:
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
My JSP 'right.jsp' starting page
Connector connect=new Connector();
PreparedStatement statement=connect.conn.prepareStatement("select title,content from news");
ResultSet result=statement.executeQuery();
ArrayList list=new ArrayList();
while(result.next()){
NewsBean bean=new NewsBean();
bean.setTitle(result.getString("title"));
bean.setContent(result.getString("content"));
list.add(bean);
}
%>
for(int i=0;i
NewsBean myBean=list.get(i);
%>
}
%>
运行时提示如下错误:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /right.jsp(2,0) Unterminated <%@ page tag
org.piler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.piler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.piler.ErrorDispatcher.jspError(ErrorDispatcher.java:130)
org.piler.Parser.parseDirective(Parser.java:511)
org.piler.Parser.parseElements(Parser.java:1543)
org.piler.Parser.parse(Parser.java:126)
org.piler.ParserController.doParse(ParserController.java:211)
org.piler.ParserController.parse(ParserController.java:100)
org.piler.generateJava(Compiler.java:146)
org.pile(Compiler.java:286)
org.pile(Compiler.java:267)
org.pile(Compiler.java:255)
org.apache.pile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
------解决方案--------------------
文章评论