I think that the department object needs to be declared as a bean first before 
you can actually reference it.

Rommel



________________________________
From: Security Management <list-subscripti...@secmgmt.com>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Thursday, April 9, 2009 10:54:21 AM
Subject: Help with an Expression in a JSP page.

All,

I have the following:

<s:iterator value="exception.exceptionValues">
        <li>
            <s:property
value="personProvider.department([0].top)"/>
        </li>
        <li>
            <s:property value="[0].top"/>
        </li>
</s:iterator>

The second <li> gives me the correct number, but the first does not.  I want
the first to translate to:

getPersonProvider().getDepartment(1)

Which is a valid query in my action.  Can someone suggest how to do that, or
point me to some documentation?  I've read through the Struts stuff here:
http://struts.apache.org/2.1.6/docs/ognl.html

and here:
http://struts.apache.org/2.1.6/docs/ognl-basics.html

I can't imagine it's not possible to call a function with an argument, but
maybe it is, or maybe it's a bad idea and the controller should handle it...

Ognl.org is down.

Thanks!


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

Reply via email to