aspose file tools*
The moose likes Portals and Portlets and the fly likes What is the difference between Request Session and Portlet Session? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "What is the difference between Request Session and Portlet Session?" Watch "What is the difference between Request Session and Portlet Session?" New topic
Author

What is the difference between Request Session and Portlet Session?

Romi Dave
Greenhorn

Joined: Jul 19, 2006
Posts: 26
Hi can someone please explain whats the difference between a Request Session and Portlet Session. And what is the scope of each session and how are they related?

Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

There is no such thing as a "Request Session".

In a servlet app, there are various scoped objects to which you can bind your own objects. These include Page, Request, Session, and Context.

For portlet issues, you might be better off asking in our Portlets forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Romi Dave
Greenhorn

Joined: Jul 19, 2006
Posts: 26
Me too thought the same but got confused with few things. To be more specific... in my application while retriving the session id i noticed that I can get id in two ways. One was to use "request.getRequestedSessionId()" and the other being "request.getPortletSession().getId()" and both being two unique ids everytime so dont know exactly what they are. Could you please explain or guide me.

Thanks,
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16236
    
  21

I think you're confusing the Http Session with PortletSession. PortletSession is part of the infrastructure that keeps different portlets in a portlet container from losing their internal state as you pop between different portlets and Java's HTTP scope doesn't really apply for that sot of world-view. But for a more intelligent explanation, ask in the Portlet forum.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to the Portlets forum.
Seems like a better fit.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between Request Session and Portlet Session?