问题描述
<%@pagelanguage="java"import="java.util.*"pageEncoding="GB2312"%><%@pageimport="com.wh.communicationsystem.DAO.*"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><%Stringusername=request.getParameter("username");Stringuserpwd=request.getParameter("userpwd");intusersex=Integer.parseInt(request.getParameter("usersex"));intuserage=Integer.parseInt(request.getParameter("userage"));Stringuseradress=request.getParameter("useradress");Stringuseremail=request.getParameter("useremail");UserOracleDAOuod=newUserOracleDAO();uod.register(username,userpwd,usersex,userage,useradress,useremail);%>
报错org.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:15inthejspfile:/WebRoot/registersuccess.jspUserOracleDAOcannotberesolvedtoatype12:Stringuseradress=request.getParameter("useradress");13:Stringuseremail=request.getParameter("useremail");14:15:UserOracleDAOuod=newUserOracleDAO();16:uod.register(username,userpwd,usersex,userage,useradress,useremail);17:%>18:<!--Anerroroccurredatline:15inthejspfile:/WebRoot/registersuccess.jspUserOracleDAOcannotberesolvedtoatype12:Stringuseradress=request.getParameter("useradress");13:Stringuseremail=request.getParameter("useremail");14:15:UserOracleDAOuod=newUserOracleDAO();16:uod.register(username,userpwd,usersex,userage,useradress,useremail);17:%>18:<!--Stacktrace:org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)javax.servlet.http.HttpServlet.service(HttpServlet.java:803)这问题弄了我2天了我初学,求高人解答