technically, if you knew the index of where the action was in your value stack, you could use the index notation. so you might want to try :
<s:property value="[1].myattr"/> assuming the action is the second root down. but i do agree that'd it be nice to stuff the action into #action. Chris Pratt wrote: > > Seems like you should be able to say > > <s:property value="#action.myattr"/> > > But since there's no getAction in the ActionContext, I doubt that will > work. Maybe it should be added? > (*Chris*) > > On 7/9/07, cilquirm <[EMAIL PROTECTED]> wrote: >> >> >> the easiest solution would be to s:set the property name you want to >> reference with a different name >> >> <s:set value="myprop" name="mynewname"/> >> >> and then access it in your loop under the new name. >> >> <s:iterator ...> >> >> <s:property value="#mynewname"/> >> >> </s:iterator> >> >> >> >> stanlick wrote: >> > >> > There is no searching up the stack beyond the top? >> > >> > On 7/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: >> >> >> >> --- Big Stick <[EMAIL PROTECTED]> wrote: >> >> > But it's a property on the Action! >> >> >> >> <s:iterator.../> pushes each iteration onto the value >> >> stack. So what's at the top then? Not the action (or >> >> model), but each element of the iteration. >> >> >> >> d. >> >> >> >> >> >> >> >> >> >> >> >> >> ____________________________________________________________________________________ >> >> Be a better Heartthrob. Get better relationship answers from someone >> who >> >> knows. Yahoo! Answers - Check it out. >> >> http://answers.yahoo.com/dir/?link=list&sid=396545433 >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > Scott >> > [EMAIL PROTECTED] >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11506986 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Orthognal-OGNL%21-tf4048748.html#a11507650 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]