Thanks brother. This is what I wound up doing, but it sure seemed weird!
Why should properties available to a page somehow be made invisible while
looping?
Parent Id: <s:property value="model.parentId" /> //works fine here!
<s:set name="pid" value="model.parentId" scope="request"></s:set> //GOOFY!
<s:iterator value="notes">
<s:url id="url" action="%{baseActionClass}_edit">
<s:param name="model.parentId"> <s:property value="#request.pid" /> </
s:param>
</s:url>
... CRAZY!
<s:a href="%{url}">Edit</s:a>
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]
--
Scott
[EMAIL PROTECTED]