Forums Register Login

Servlet communication with portlet

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2033 times.
Similar Threads
Portlet-servlet communication with JSR168 ?
question on portlet maximized
spring global session scope
Servlet to Portlet
jsessionid
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:01:17.