Am having trouble with getting correct values from the objects retrieved from session in the
JSP.
Am instantiating a user object in the login
servlet and storing in session. The user object is access from the session in the JSP and then the getUserName() is called on the user.
The problem is that when the jsp page is called, it does not get the user name, but if I click refresh on the browser then it would display the user name.
if anyone has fix for this, let me know. Thanks!
PS: am using
Tomcat JSP/Servlet engine