You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mitch gorman <mi...@speedlimit35.com> on 2009/03/11 19:44:50 UTC
okay, this is driving me nuts
is there any syntactical construct that will allow me to do the
following (in v2.0.14):
<s:iterator value="somelist" status="rowstatus">
<s:push value="#rowstatus" /> <!-- just for convenience -->
<div>
<s:url id="link-%{count}" action="doSomething">
<s:param name="count" value="%{count}" /> <!-- just
for example -->
</s:url>
<s:a href="what the hell goes here???">
click for count #<s:property value="count" />
</s:a>
</div>
</s:push>
</s:iterator>
i want unique URL references for each iteration over the list. the
above is a dumbed-down version of what i typically want to do, which
would be to have a form that applies to the data of that row, and have a
set of action buttons to apply to that row, e.g., edit the item, add it
to inventory, publish it, etc.
i've tried a wide array of syntactical structures, but none of them
seem to handle the double-dereference. the closest i've gotten was
something that looked like "[current URL]/link-3" as the URL. i've
tried using <s:push>, <s:set>... nada.
anyone know the secret arcane formula to use? (musachy, david,
martin, i'm looking in your direction!) i've got the bucket of goat's
blood standing by...
TIA.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: okay, this is driving me nuts
Posted by mitch gorman <mg...@shadowtv.biz>.
doh... this one didn't show up in my
business-gmail->thunderbird-filtered reader until just now. please
ignore this thread... i re-asked the question in the "nucking futs"
thread, and was quickly answered!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org