Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

JSTL to get an object in portlet session?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author and cow tipper
Posts: 5006
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you cast it to a PortletSession?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic