wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Servlet communication with portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Servlet communication with portlet" Watch "Servlet communication with portlet" New topic
Author

Servlet communication with portlet

Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
I have a JSR168 portlet in WebSphere portal 5.1 .
I have saved data in application-scope of the portlet session.
How can I retrieve that data at the servlet end.
My servlet gets invoked from a JSP on the portlet.

Thanks
Dhiren
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

If you are dispatching the rendering to the Servlet/JSP and you include the data into the Application scope, then you will have access to it. Remeber according to the spec, the Portlet Session object is a wrapper around the HTTPSession object.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
GaneshKumar Kumar
Greenhorn

Joined: May 23, 2006
Posts: 24
Joshi,
Attributes stored in PortletSession are accessable from the ServetSession and vice versa. So just set an attribute in the portlet session and access it from the servlet or jsp as usual.

Thanks.
Ganesh
 
 
subject: Servlet communication with portlet