日期:2014-05-18  浏览次数:20629 次

这个是什么错误.
org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP:  

An   error   occurred   at   line:   32   in   the   jsp   file:   /test1.jsp
HibernateUtil   cannot   be   resolved
29:  
30:   <body>
31:   <%
32:   Session   session1   =   HibernateUtil.currentSession();
33:  
34:   Transaction   tx   =   session1.beginTransaction();
35:  


An   error   occurred   at   line:   44   in   the   jsp   file:   /test1.jsp
HibernateUtil   cannot   be   resolved
41:   session1.save(princess);
42:   tx.commit();
43:  
44:   HibernateUtil.closeSession();
45:   %>
46:   </body>
47:   </html>


是什么错误呢?

------解决方案--------------------
晕,Hibernate你都放在jsp里用啊。。。。
------解决方案--------------------
HibernateUtil cannot be resolved
HibernateUtil 这个未定义
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html