This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi Helpers, I have a problem in accessing the session data in my JSP. The actual session is created by a servlet. Then after validation, forwards this to a jsp page. In this jsp page, i am not able to access the data stored in session object. I believe a new session is getting created. (Interestingly, when this JSP in turn invokes another servlet, i am able to acces the same session object created in the first servlet). Can somebody help in this ? Thanks sankar
Make sure you are NOT using the session object in declarations like <%! session.getValue(MY_KEY)%> That won't work because the implicit objects are LOCAL variables of the service() method of the generated servlet. You have to use <% session.getValue(MY_KEY)%> instead.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
Joined: Oct 03, 2000
Thanks Tony. I will check my JSP and will inform you about the progress. regards sankar