struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Altenhof, David Aron" <>
Subject RE: OGNL and init params
Date Thu, 07 Oct 2010 15:23:33 GMT
That did it ... thanks!


-----Original Message-----
From: Maurizio Cucchiara [] 
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

Maurizio Cucchiara

2010/10/6 Altenhof, David Aron <>:
> 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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message