in our HibernateUtils.class we have a function called createSession() but when it comes to use that function in our action class we simply call the openFactory()/createFactory() function and then use that typecasted object for creating new connection/ to use openSession() menthod and that Thread safe session instance remain unused as that creatSession() is never called in action class
As per my knowledge, here in logic:present tag the attribute "name" defines a scripting variable to be used as the variable being tested for existence.
Here we are testing that particular variable is present in the scope or not...? And then if it is present in a scope it will enter into the body of the tag and then bean:write attribute displays the values of the properties in the form.
I'm trying upload a pdf file. and When debugging the project I realized that the FormBean returns the variable "thefile" null.
I'm using NetBeans 7.1.2 and Struts 1.3.10, with the JDK jdk1.7.0_05 also I'm using GlassFish Server 3.1.2.
private UploadForm validator;
The best way to maintain session in struts application is create a session obj in ActionServlet....
bcz ActionServlet is responsible for taking request and providing response.....
so creating a session is ActionServlet is the best way
<bean:write name="message" />