首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

jsp中的useBean有关问题

2013-09-11 
求助jsp中的useBean问题出现这样的问题,各位大侠帮帮忙org.apache.jasper.JasperException:Unabletocompil

求助jsp中的useBean问题
出现这样的问题,各位大侠帮帮忙
org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP:  


An   error   occurred   at   line:   9   in   the   jsp   file:   /scope_page.jsp
compare   cannot   be   resolved
6:   <div   align= "center ">
7:   <JSP:useBean   id= "compare "   scope= "session "   class= "compare_scope "/>
8:   <hr>
9:   <%=compare.getscopeType()%> <br>
10:   <%compare.setscopeType( "request ");%>
11:   <hr>
12:   </div> </body>


An   error   occurred   at   line:   10   in   the   jsp   file:   /scope_page.jsp
compare   cannot   be   resolved
7:   <JSP:useBean   id= "compare "   scope= "session "   class= "compare_scope "/>
8:   <hr>
9:   <%=compare.getscopeType()%> <br>
10:   <%compare.setscopeType( "request ");%>
11:   <hr>
12:   </div> </body>
13:   </html>

[解决办法]
<jsp:useBean id= " " class= " " >

应该这么写吧

而且class 还必须要有包结构
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行