Since this deals with struts and uportal I have copied the uportal user group in this response too.
I had a similar problem. See email thread below: http://www.mail-archive.com/user@struts.apache.org/msg87615.html I was simply using the session (map) object from a SessionAware action class and not explicitly using PortletSession. This is because we run our struts 2 webapp both as a portlet and a standalone webapp, and wanted to handle the session in a consistent way. I applied the uportal fix (mentioned in the email thread) to my uportal 2.5.x installation and MY problem was solved. We are just now moving to uportal 3.1.1 and are still on struts 2.0.14 due to an issue running struts 2.1.6 webapps as standalone and portlet simultaneously. But so far, I have not seen the problem you describe when testing my struts 2 portlets in uportal 3.1.1. Todd Kofford tkoff...@ku.edu University of Kansas - IT -----Original Message----- From: Tracy12 [mailto:j_lal...@yahoo.com] Sent: Tuesday, July 21, 2009 8:49 PM To: user@struts.apache.org Subject: Struts2 portlet bug found Hi, We got a struts 2.0.6 portlet application with uPortal 2.5.3 ( inside Pluto 1.0.x) with no issues and running fine. Now we deployed the same struts 2.0.6 application in uPortal 3.1.1 (inside pluto 1.1.7) and found following issue. in our action classes we had the following, where session is of type PortletSession. session.setAttribute("studentId","1111111",PortletSession.APPLICATION_SC OPE) We trieved the above studentId in the jsp as follows. <s:property value="#session.studentId"/> The above worked with no issues in uPortal 2.5.3 but with uPortal 3.1.1 this is not working, Then I tried the following <s:property value="#application.studentId"/> but didnt work, I interacted with the uPortal forum and this is what it tells...http://www.nabble.com/Re%3A-is-this-a-bug-in-struts2-portlets-td 24581733.html I thought based on that <s:property value="#application.studentId"/> should work, What else could I try, This looks to me a bug. Can't understand why it is not in the value stack. If not pls let me know how to retrieve the above PortletSession.APPLICATION_SCOPE variable in the jsp. If this has been fixed let me know which struts 2 version is that. I did try the following also with no luck <s:property value="%{#application['studentId']}"/> waiting for a quick reply Thanks -- View this message in context: http://www.nabble.com/Struts2-portlet-bug-found-tp24598748p24598748.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org