I'm trying to generate a URL dynamically from a map of name, value pairs
using the s:url & s:iterator tags.
The code I tried looks like the following:
<s:url id="someUrl" action="someAction">
<s:iterator value="paramMap">
<!-- create a param using the key and value fields in the param map -->
<s:param name="%{key}" value="%{value}"/>
</s:iterator>
</s:url>
Struts2 seems to totally ignore the iterator tag inside the url tag and none
of the params in the map are added to the url. Is what I tried legal syntax
- i.e. is s:iterator tag allowed inside a s:url tag? If not, how else can I
do this?
Thanks
Srinivas
--
View this message in context:
http://www.nabble.com/-S2--Is-s%3Aiterator-tag-allowed-inside-s%3Aurl-tag--tf4178780.html#a11882656
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]