This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If you use request.getSession() ; // request is a HttpServletRequest you will get a new empty session if one does not already exist. Sounds like this is what is happening - try to figure out why the session created in the JSP is not being associated with the servlet. Bill
Hi Zafer, If u want to use sessions in ur jsp page, here are the few things you have to know. In jsp, session, is an implicit object, that is it will be there by default. When ever you are writing a jsp page include session="true" in the page tag like this. <%@ page language="java" session="true"%> after that when ever you want to retrieve a value from the session use the following syntax. <% HttpSession session=request.getSession(true); %> or <% HttpSession session=request.getSession(); %> The benefit of using the first method is that, if there is no session exists already, it will create a new session and will continue with other pages. But remember to add session="true" attribute in page tag. I hope u find this info useful. Bye. Loke.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com