Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • How to access PortletSession within dispatched jsp page

    1 answers - 451 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 | | 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

Re: How to access PortletSession within dispatched jsp page


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Java"

EMSDN.COM