Hi, I'm trying to use a List<String> as a parameter to a s:url tag. Ideally I would like to create a URL in the form of:
myAction.action?theList=first&theList=second&theList=third I've tried writing my JSP in a few different ways without any success. First, I tried using a param tag directly inside the s:url, but it collapsed the entire list into a single element. Code: <s:url id="link" action="myAction"> <s:param name="theList" value="%{theList}" /> </s:url> List before following the url: first, second, third List after following the url: [first, second, third] -> all one element with commas inside the element Then, I tried iterating over the list and creating individual parameters. Code: <s:url id="link" action="myAction"> <s:iterator value="theList"> <s:param name="theList"> <s:property /> </s:param> </s:iterator> </s:url> This didn't produce any parameters in the output at all. Could someone help explain what is wrong with my earlier attempts or provide some hints about how to do this in Struts 2? Thanks! -- View this message in context: http://www.nabble.com/s%3Aurl-tag-with-nested-List-tp21840747p21840747.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org