org.apache.jasper.JasperException: Unable to compile class for JSP:

问题描述

<%@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天了我初学,求高人解答

时间: 2024-10-29 22:41:21

org.apache.jasper.JasperException: Unable to compile class for JSP:的相关文章

jsp-新手求教,总是出现“Unable to compile class for JSP:”

问题描述 新手求教,总是出现"Unable to compile class for JSP:" 解决方案 报了三个这样相同的错误,其他的没问题. 解决方案二: ?近来用到tomcat,在发布项目是,碰到这样一个问题:org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 23 in the generated java file The method

jsp-HTTP Status 500 - Unable to compile class for JSP

问题描述 HTTP Status 500 - Unable to compile class for JSP 求大牛求解!新手不了解 j点击Jsp页面出现的错误 type Exception report message Unable to compile class for JSP description The server encountered an internal error that prevented it from fulfilling this request. except

org.apache.jasper.JasperException这个是什么问题?

问题描述 <ahref="write_diary.jsp?petId=${item.petId}">发表宠物日志</a>点击这个超连接的时候出现这个2010-10-3011:19:36org.apache.catalina.core.StandardWrapperValveinvoke严重:Servlet.service()forservletjspthrewexceptionorg.apache.jasper.JasperException:/write_di

org.apache.jasper.JasperException错误,求大神解答!

问题描述 org.apache.jasper.JasperException:/pages/emp_mana/empindex.jsp(48,3)Thefunctionsizemustbeusedwithaprefixwhenadefaultnamespaceisnotspecifiedatorg.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)atorg.apache.jasper.

点击页面出现org.apache.jasper.JasperException

问题描述 我在做一个网站,用的C标签其他的页面没事,只有两个页面.一点击就出错.但是在其他人的电脑上是好的,只有我点击会出错.严重:Servlet.service()forservletjspthrewexceptionorg.apache.jasper.JasperException:/WEB-INF/views/miss/list.jsp(9,7)Thefunctionlengthmustbeusedwithaprefixwhenadefaultnamespaceisnotspecified

谁用过xplanner,遇到问题了org.apache.jasper.JasperException: file:/WEB-INF/jsp/view/peopl

问题描述 如题,调试xplanner的时候遇到问题...网上找的资料说是tomcat的版本太低,我用的是tomcat5.5.34,后来换成tomcat6.0.30还是不行...因为xplanner多是用的自定义标签,也没有现成的源码,调试也很困难,如果有谁用过就帮帮忙!在此谢过了!org.apache.jasper.JasperException:file:/WEB-INF/jsp/view/people.jsp(91,4)jsp:getPropertyforbeanwithname'perso

JSP页面中出现的一个异常:org.apache.jasper.JasperException: java.lang.NullPointerException

先把出现的异常情况贴出来吧: type Exception report messagejava.lang.NullPointerException descriptionThe server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.NullPointerException

ubuntu xplanner-0.7b7b 安装全攻略!!花了我三天的时间!! org.apache.jasper.JasperException 解决

不要相信网上的飞贴.xplanner-0.7b7b虽然很老,但是用JDK1.6是可以跑的 配置单:JDK1.6.13   TOMCAT 5.0   MYSQL5.1 tomcat一定要用5.0版本,不然会报org.apache.jasper.JasperException错误!! 1. 自己在myeclipse里新建一个web项目 项目名可以为 xplanner,然后将解压后的xplanner文件夹下面的文件全部放到项目的 WebRoot下面替换到原来的文件. 2. 再到xplanner-0.7

在jsp页面中显示lucene的查询结果,报错:org.apache.jasper.JasperException: Java heap space

问题描述 在jsp页面中显示lucene的查询结果,当返回hits的总数小于100时,可以正常显示,当结果大于100,会报如下错误:(但是在java环境下结果输出是正常的)exceptionorg.apache.jasper.JasperException:Javaheapspaceorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:433)org.apache.jasper.