日期:2014-05-18  浏览次数:21238 次

关于JSP HTTP Status 500错误
<%
  vehicleinfoDAO dao=new vehicleinfoDAO();
  List<vehicleinfoBean> vehicles=dao.selectAll();
  for(vehicleinfoBean vehicle:vehicles){
  %>
  <tr>
  <td><%=vehicle.getId()%></td>
   
  <td><%=vehicle.getBranModel() %></td>
  <td><%=vehicle.getPlateNum() %></td>
  <td><%=vehicle.getFramNum() %></td>
  <td><%=vehicle.getRegiTime() %></td>
   
  </tr>
   
  <% } %>
 




HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 44 in the jsp file: /vehicleUpdate.jsp
Generated servlet error:
Syntax error on token "<", invalid AssignmentOperator

An error occurred at line: 44 in the jsp file: /vehicleUpdate.jsp
Generated servlet error:
Syntax error on token "=", != expected

An error occurred at line: 44 in the jsp file: /vehicleUpdate.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 44 in the jsp file: /vehicleUpdate.jsp
Generated servlet error:
Syntax error on token ")", : expected


 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 org.apache.jasper.JspCompilationContext.compile(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



怎么回事 该怎么改啊

------解决方案--------------------
44 in the jsp file: /vehicleUpdate.jsp
Generated servlet error:
麻烦把这个JSP页面贴出来,44line到底是什么?
------解决方案--------------------
提示 很明确了 在第44行有错误
估计是标签的错误
An error occurred at line: 44 in the jsp file: /vehicleUpdate.jsp
再仔细检查下
------解决方案--------------------
这个vehicleinfoBean类没有导入吧。。。Unable to compile class for JSP,应该是哪个类没有导入。。。
------解决方案--------------------
是44行的。
------解决方案--------------------
贴多点代码出来了
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html
我的异常网推荐解决方案: