can not be resolved 怎么解决?
org.apache.jasper.JasperException:UnabletocompileclassforJSP:Anerroroccurredatline:72...
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 72 in the jsp file: /tm1.jsp
t_shirtid cannot be resolved to a variable
69: <div class="section">
70: <h2><span><bean:write name="mensselectForm" property="t_shirtprice"/> </h2>
71: <bean:define id="t_shirtprice" name="mensselectForm" property="t_shirtprice" type="String"></bean:define>
72: <html:hidden property="t_shirtprice" value="<%=t_shirtid%>"/>
73: </span>
74: <bean:write name="mensselectForm" property="t_shirtid"/> </h2>
75: <bean:define id="t_shirtid" name="mensselectForm" property="t_shirtid" type="String"></bean:define>
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
谢谢各位大神!!
提示是在72行中t_shirtid 展开
An error occurred at line: 72 in the jsp file: /tm1.jsp
t_shirtid cannot be resolved to a variable
69: <div class="section">
70: <h2><span><bean:write name="mensselectForm" property="t_shirtprice"/> </h2>
71: <bean:define id="t_shirtprice" name="mensselectForm" property="t_shirtprice" type="String"></bean:define>
72: <html:hidden property="t_shirtprice" value="<%=t_shirtid%>"/>
73: </span>
74: <bean:write name="mensselectForm" property="t_shirtid"/> </h2>
75: <bean:define id="t_shirtid" name="mensselectForm" property="t_shirtid" type="String"></bean:define>
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
谢谢各位大神!!
提示是在72行中t_shirtid 展开
2个回答
推荐于2017-09-21
展开全部
出现can not be resolved的原因如下:
第一、没引入包;
第二、没声明变量就使用了。
解决方法:引入包、查看是否有声明的变量或对象。
第一、没引入包;
第二、没声明变量就使用了。
解决方法:引入包、查看是否有声明的变量或对象。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询