小弟刚学JSP,在做一个人事管理软件的时候出现了问题.请大家帮忙看看
JSP,在做一个人事管理软件的时候出现了问题:
在进行查询的时候,
1. 按照”出生日期范围”查询,即从自某年某月某日到某年某月某日进行查询!
2. 按照” 入司日期”查询,即从自某年某月某日到某年某月某日进行查询!
出现了错误.如下:
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: Unable to compile class for JSP:
An error occurred at line: 31 in the jsp file: /employee/SearchEmployeeStep2.jsp
bir_from_id cannot be resolved
28: }
29:
30: Vector listemployee = Employee.Search(employeeid,username,sex,branch,nativeplace,marriage,politics,folk,education,administrationlevel,
31: duty,position,incumbency,incumbencytype,bir_from_id,accumulate_from_id);
32: %>
33: <html>
34: <head>
An error occurred at line: 31 in the jsp file: /employee/SearchEmployeeStep2.jsp
accumulate_from_id cannot be resolved
28: }
29:
30: Vector listemployee = Employee.Search(employeeid,username,sex,branch,nativeplace,marriage,politics,folk,education,administrationlevel,
31: duty,position,incumbency,incumbencytype,bir_from_id,accumulate_from_id);
32: %>
33: <html>
34: <head>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
________________________________________
Apache Tomcat/5.5.23
------解决方案--------------------数据库中只是一个 birthday 就可以了。
比如:要查询 2007-05-01 ~ 2007-06-01 的日期,就会把 birthday 中所有这个时间段内的值都匹配的。
你的 _Birthday 和 _Accumulateid 放的是什么东西?
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html
我的异常网推荐解决方案:<