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>
是什么错误呢?
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>
是什么错误呢?
HibernateUtil 这个未定义
刚写了这个就报错了.
默认包要怎么导入呢?