struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Altenhof, David Aron" <dalte...@iupui.edu>
Subject RE: OGNL and init params
Date Thu, 07 Oct 2010 17:00:25 GMT
The value is accessed through the application object, so yes, this will be consistent:

http://struts.apache.org/2.0.11.1/docs/ognl.html

-David

-----Original Message-----
From: Ashlon Hill [mailto:ashlon@gmail.com] 
Sent: Thursday, October 07, 2010 12:09 PM
To: Struts Users Mailing List
Subject: Re: OGNL and init params

<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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message