www.emsdn.com
Class Profile: Home »» Java [Java] under "Java" »»» How to access PortletSession within dispatched jsp page

How to access PortletSession within dispatched jsp page


Hi ,
I am a newbie to portlet.I created Portlet class extending GenericPortlet.
In doView method I dispatched the request to jsp page.
Can anybody please tell me, how to access PortletSession
within dispatched jsp.
Thanks and Regards,
Chamila
To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org


No. 1# | By Developer Tags User at [2008-5-5] | size: 1248 bytes

Hi.

You can access the RenderRequest/Response objects within a portlet jsp
page by using the portlet tag library. See the portlet spec section
PLT.22 for more details.

But shortly it goes by first enabling the portlet tags library like this

<%@ taglib uri=http://java.sun.com/portlet prefix=portlet %>

and then by using this tag

<portlet:/>

you can access those objects like regular variables within the jsp like this

<% PortletSession pSession = () %>

Didn't test for typos, but I think it went right :D
-mikko

chamila wrote:
Hi ,

I am a newbie to portlet.I created Portlet class extending GenericPortlet.
In doView method I dispatched the request to jsp page.
Can anybody please tell me, how to access PortletSession
within dispatched jsp.

Thanks and Regards,
Chamila

To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org

To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org



Java Hot!

Java New!


Copyright © 2008 www.emsdn.com • All rights reserved • CMS Theme by www.emsdn.com - 0.297