I'd like to be able to access the first element of my people list as a person
in a property tag later on in an included page as follows:
    <s:property value="person.firstName" />
I know that <s:property value="people[0].firstName" /> would work, but I
unfortunately cannot do that because I may enter the page another way in
which I set a person as a request attribute.
Can I use the push or set tags to accomplish this?  I tried <s:set
name="person" value="people[0]" />, but that only works if I change the tag
to <s:property value="#person.firstName" /> which doesn't work if I come
from my action which sets the person variable.

-- 
View this message in context: 
http://www.nabble.com/Push-vs.-Set-tf3844254.html#a10886681
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to