aspose file tools
The moose likes Portals and Portlets and the fly likes JSTL to get an object in portlet session? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "JSTL to get an object in portlet session?" Watch "JSTL to get an object in portlet session?" New topic
Author

JSTL to get an object in portlet session?

Vito Andolini
Greenhorn

Joined: Jun 19, 2007
Posts: 10
Hi, I'm trying to code a JSF portlet on WebSphere Portal 6. I have put values into the portlet session, however I cannot pull them out of the portlet session using jstl. Your typical

doesn't work because the jstl is looking in the HttpSession, not in the PortletSession.

Anyone know how to use jstl to access a variable in the portlet session?
barry bevel
Greenhorn

Joined: Jan 29, 2008
Posts: 1
Hi,
I'm having the same problem I can't access portlet session using JSTL in the Portal (Websphere Portal 6.0).

I have to use <%=renderRequest.getPortletSession().getAttribute("comment")%>

I saw that something here that might help:

http://www.ja-sig.org/wiki/display/PLT/portlet+defineObjects+tag+extension
Bhargav N Balasubrahmanya
Greenhorn

Joined: May 28, 2008
Posts: 8
Hi, i can't use any of the jstl core tags. not even the <c:if>, <c:forEach works. does this not work at all in jsf portlets?
can anyone help me out of this?

thanks
Bhargav
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Can you cast it to a PortletSession?


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Jan Engehausen
Greenhorn

Joined: Jan 14, 2010
Posts: 1
I see the other posts date from mid-2008, but anyway: This is probably a bug in the IBM Struts Portlet Framework. PK92740 did the trick for me...

Hope it helps!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL to get an object in portlet session?
 
Similar Threads
Migrating from WPS 6.0 to 6.1 - API related problem.txt
Required, sample of a portlet supporting both events (publishing & processing).
Portlets+AJAX - accessing portlet objects
portlet session?
How to pass session data between 2 Portlets???