http://struts.apache.org/2.x/docs/debugginginterceptor.html
On Thu, Apr 30, 2009 at 10:48 AM, Musachy Barroso <musa...@gmail.com> wrote: > if you have the debugging interceptor applied to your action, you can > add debug=console to the url, and you will get a console where you can > type OGNL expressions, and see the result. > > musachy > > On Thu, Apr 30, 2009 at 10:40 AM, Griffith, Michael * > <michael.griff...@fda.hhs.gov> wrote: >> Ding! Sorry I didn't see this reply earlier when I repeated how do I get >> the map value. Again, thanks Dave! Is there such a thing as an OGNL >> expression validator? It would be nice to be able to fool around with >> the expression interactively until I am able to get to the correct >> expression. >> >> Cheers~ >> MG >> >> -----Original Message----- >> From: Dale Newfield [mailto:d...@newfield.org] >> Sent: Thursday, April 30, 2009 9:07 AM >> To: Struts Users Mailing List >> Subject: Re: What is wrong with my with OGNL Map expression?? >> >> Michael Griffith wrote: >> > I have a Map<String,String> in the HttpSession > The map is stored >> in the session as an attribute named > genieProperties... >> >> Kishan G. Chellap Paandy wrote: >>> Assuming there's an attribute with name 'mySessionAttribute' in the >>> Session scope <s:property value="%{#session.mySessionAttribute}" /> >> >> Which gets you half way there. It gets you the Map. To get the value >> you want from it, just call it's get method: >> >> <s:property value="%{#session.genieProperties.get('url')}" /> >> >> The %{} are often left out by people, but they're critical. That's what >> says "this is an OGNL expression". Musachy's response illustrates the >> potential confusion as to what EL you're using when it's not specified. >> >> -Dale >> >> --------------------------------------------------------------------- >> 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 >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org