Hi I have a
JSP page which is having some fields that are getting populated from its ActionForms reset method. Everything is working fine. Also worth mentioning the scope for it is "session".
Now the problem arises when I am on this page and session timeouts. then on refreshing or while attempting to go to next page, using a button, it takes me to the login page. Thats also fine. However, when again logged it, I go to that page again, it doesnt have any data. I tried to debug it and found out that in this kind of situation the reset method in the associated page's ActionForm is not getting called and thus, the data is not getting fetched from the database. I am using Hibernate to access the database and thus to fetch data needs
Session session = HibernateUtil.currentSession();
Query query = session.createQuery("from Book book");
I am not understanding where I am getting wrong. Also, I am running it on
Tomcat server.
Looking forward for some help.
Thanks a lot.