hibernate+Struts+JSP+MySQL+Tomcat(5.5.17)的一个项目中遇到一个很奇怪的关于Tomcat的问题,麻烦高手详阅内容和能给予帮助,谢谢!!
Struts中的用于用户登陆的代码:
public class UserBiz implements Serializable
{
public User login( String userName , String password )
{
Session session = HbnUtil.getSession() ;
Transaction tx = session.beginTransaction() ;
User user = null ;
Query query = session.createQuery( "from User as u where u.userName=:userName and u.password=:password " )
.setString( "userName " , userName )
.setString( "password &