File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes unable to retrieve value from session in a jsp/java web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "unable to retrieve value from session in a jsp/java web app" Watch "unable to retrieve value from session in a jsp/java web app" New topic
Author

unable to retrieve value from session in a jsp/java web app

Arvind Chari
Greenhorn

Joined: Jul 26, 2011
Posts: 8
I am trying to authenticate a user using OpenID Providers like Gmail/Hotmail/Yahoo. In this process, a form is shown which when submitted, redirects the user to the 3rd party site for actual authentication. (Like Gmail etc).

Now, just before the redirect, there is code in java to store in session the custom object 'manager'.

This code is given below--



After user has signed in at the openid provider, he is redirected to a jsp page within the same web app. The specific page he is redirected to is "loggedin.jsp".

In "loggedin.jsp" I am trying to retrieve the custom object 'manager' with the following code-




However when I do a simple check for value of Manager, I am getting output that manager is storing a NULL value.

What have I done wrong here? Why am I not getting the session variable? The open id auth is happening perfectly, only I am unable to retrieve the session variable.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to retrieve value from session in a jsp/java web app