Assuming the attribute in the session scope is a map, how would I get the value for the map entry called url? Would it be something like this: <s:property value="%{#session.mySessionAttribute['url']}" />
MG -----Original Message----- From: Kishan G. Chellap Paandy [mailto:kishanchellapaand...@spanservices.com] Sent: Thursday, April 30, 2009 7:14 AM To: Struts Users Mailing List Subject: RE: What is wrong with my with OGNL Map expression?? Hi Griffith, Assuming there's an attribute with name 'mySessionAttribute' in the Session scope and you can access the same in you jsp as below: <s:property value="%{#session.mySessionAttribute}" /> May be this will help. Thank you. Regards, Kishan.G Senior Software Engineer. www.spansystems.com -----Original Message----- From: Griffith, Michael * [mailto:michael.griff...@fda.hhs.gov] Sent: Thursday, April 30, 2009 1:04 AM To: Struts Users Mailing List Subject: What is wrong with my with OGNL Map expression?? Hello all, It seems as if I am always at odds with trying to figure out the correct OGNL syntax. I have a Map<String,String> in the HttpSession, and I'm trying to use one of the values in the map as an anchor tag in a link. The map is stored in the session as an attribute named genieProperties... None of these expressions work... <s:url id="myLink" anchor="#session.['genieProperties'].url" /> <s:url id="myLink" anchor="#session.genieProperties['url']" /> <s:url id="myLink" anchor="#session.['genieProperties['url']']" /> <s:url id="myLink" anchor="#session.['genieProperties.url']" /> Am I at least close? Any assistance would be appreciated. Best Regards, MG --------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org