Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] Is s:iterator tag allowed inside s:url tag?

Srinivas.N.

2007-07-30



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
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.