struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashlon Hill <ash...@gmail.com>
Subject Re: OGNL and init params
Date Thu, 07 Oct 2010 16:08:30 GMT
<s:property value="#*application*['simpleParamName']"/>

will it always be listed as *application*?  or does that value change?



On Thu, Oct 7, 2010 at 10:23 AM, Altenhof, David Aron <daltenho@iupui.edu>wrote:

> That did it ... thanks!
>
> -David
>
> -----Original Message-----
> From: Maurizio Cucchiara [mailto:maurizio.cucchiara@gmail.com]
> Sent: Wednesday, October 06, 2010 9:49 PM
> To: Struts Users Mailing List
> Subject: Re: OGNL and init params
>
> You would be able to access through ognl or more simply inside your action.
>  ognl syntax, using implicit objects:
> <s:property value="#application['simpleParamName']"/>
>
> In order to get access inside your action, you have to implement
> ApplicationAware interface.
>
> Take a look at the bottom of this page
> http://struts.apache.org/2.0.14/docs/ognl-basics.html
>
> Maurizio Cucchiara
>
> 2010/10/6 Altenhof, David Aron <daltenho@iupui.edu>:
> >
> > No matter how hard I look, I can't find the answer to this (admittedly
> newbie) question. How do you get access to the values of init parameters or
> context parameters declared in your web.xml file in your jsp page? Can they
> be accessed through ognl?
> >
> > A related question ... is there a good reference showing exactly what is
> in the various struts2 scopes such as session, application, etc.
> >
> > Thanks,
> >
> > David
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message