Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to access a parameter on theme jsp ?

437 views
Skip to first unread message

Neeraj Sidhaye

unread,
May 26, 2009, 1:26:48 AM5/26/09
to
Hi,

I am passing some parameter from external application to portal and hitting login portlet.
I want to access that parameter on theme jsp ( default.jsp ) because based on the parameter value i need to show appropriate banner on portal.

I am able to access that parameter in my Login Portlet, but as per my knowledge
whenever a portal page renders first of all theme renders ( default.jsp ) then skin renders ( control.jsp ) and then portlets on the page starts rendering.

please correct me if i am wrong above.

Now since theme's default.jsp renders first, so i want that parameter on theme jsp so that i can show appropriate banner to the user.

I am using URLGenerataionAPI to generate url from my servlet and hitting my login page and portlet. Passing parameters through in MAP.

can any one tell me on how to retrieve this parameter on theme's jsp ?

Many thanks...
**

ssan...@insags.com

unread,
May 26, 2009, 5:58:30 AM5/26/09
to
The parameter is targetted to the portlet so I don't know if you can access it from the theme JSP. Maybe, you could develop a filter for the wps.ear, but I don't know if this is the good approach.
Something about filters: http://www.ibm.com/developerworks/websphere/library/techarticles/0707_lynn/0707_lynn.html

Neeraj Sidhaye

unread,
May 26, 2009, 8:12:35 AM5/26/09
to
hey thanks ..
yes that's right, as i am targetting to portlet so how it should be available to theme.

i am trying to find a way to retrieve a parameter ( passed from non-portal external app )in theme jsp.

many thanks..

http://ExtremePortal.blogspot.com

psailaja

unread,
May 26, 2009, 2:19:55 PM5/26/09
to
I faced a similar situation before and took the help of Cache map portlet service. This service allows data sharing between portlets and themes.

You can find more details about this service and how to configure it in below article.

http://www.ibm.com/developerworks/websphere/library/techarticles/0602_hepper/0602_hepper.html

sailaja

croes...@gmail.com

unread,
May 27, 2009, 7:48:42 PM5/27/09
to
if you use a 'friendly' url - then you should be able to pass the parameter on the url as a get parameter, and pick it off the request object in the theme

Neeraj Sidhaye

unread,
May 28, 2009, 2:10:58 AM5/28/09
to
appreciate your reply...

see, i am using URLGenerataionAPI to generate url from my servlet and hitting my login page and portlet. Passing parameters through MAP.

i tried retrieving those parameter from request ( request.getParameterMap() )object in theme jsp, but i am getting null...

thanks..
**

manish....@gmail.com

unread,
Jul 22, 2014, 1:32:43 AM7/22/14
to
Hi Neeraj,
you can use <portal-navigation:urlGeneration > in your theme.
But i am facing the same problem of getting the null parameter value on my theme.jsp.
Any help will be appreciated.
0 new messages