name the current iterated object, something like that:
<s:iterator var="elem" status="status" value="config.groupList">
<s:url id="url" action="get-ccf-data" method="getParameterList">
<s:param name="displayGroup" value="%{#elem}"/>
</s:url>
<sj:tab id="tab%{#status.index}" href="%{url}" label="%{#elem}"/>
</s:iterator>
2010/1/8 RogerV <[email protected]>:
>
>
>
> Gabriel Belingueres-2 wrote:
>>
>> The <s:iterator> tag (without the var attribute) push the current item
>> to the top of the ValueStack.
>> <s:property/> will get the value from the top of the stack.
>>
>> IMHO, I think this is a bad coding idiom. I don't like to think too
>> much where the data came from.
>>
>
> Actually what I was asking is how to to access the value of <s:property/>
> within other tags. So for example,
>
> <sj:tabbedpanel id="mytabs2" selectedTab="1">
> <s:iterator status="status" value="config.groupList">
>
> <s:url id="url" action="get-ccf-data" method="getParameterList">
> <s:param name="displayGroup" value="<s:property/>"/>
> </s:url>
>
> <sj:tab id="tab%{#status.index}" href="%{url}" label="<s:property/>"/>
> </s:iterator>
> </sj:tabbedpanel>
>
> doesn't work. I don't get any paramters on the URL in the generated .html
> and the tabbed headers all have the String value "<s:property/>" rather
> than the value of <s:property/>
>
> Regards
>
>
>
>> 2010/1/7 RogerV <[email protected]>:
>>>
>>> Hi
>>>
>>> <s:iterator status="stat" value="config.groupList" >
>>> <s:url id="url1" action="get-ccf-data" method="getParameterList">
>>> <s:param name="displayGroup" value="<what goes here?>"/>
>>> </s:url>
>>> <s:a href="%{url1}"><s:property/></s:a>
>>> </s:iterator>
>>>
>>> The iterator is returning a string value on each iteration - what's the
>>> incantation to get the value of <s:property/> into the value parameter of
>>> the param tag?
>>> --
>>> View this message in context:
>>> http://old.nabble.com/How-to-nest-Struts-Tags-tp27062761p27062761.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/How-to-nest-Struts-Tags-tp27062761p27072030.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]