Check the section about accessing static properties at
http://struts.apache.org/2.0.14/docs/ognl-basics.html

Nils-H

On Wed, Dec 10, 2008 at 6:27 PM, Burton Rhodes <[EMAIL PROTECTED]> wrote:
> I hope this isn't a "basic java" question, but I am having a hard time
> figuring out why I can't access a static member variable from a class
> in the application scope in my jsp file.  Really appreacite any help!
>
>
> ---- JSP excerpt below -------
>
> <!-- This work because "xactionStatusLookups" is a NON-STATIC member
> variable -->
> <s:select
> name="searchCriteria.xactionStatusId"
> list="%{#application['scMyAppProperties'].xactionStatusLookups}"
> listKey="xactionStatusId"
> listValue="name"
> />
>
> <!-- This DOES NOT work because "xactionStatusLookups" is a STATIC
> member variable -->
> <s:select
> name="searchCriteria.xactionSourceId"
> list="%{#application['scMyAppProperties'].xactionSourceLookups}"
> listKey="xactionSourceId"
> listValue="name"
> />
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to