hello all
I am new to
struts 2.
I am having List of
string in action classs
List<String> categories
this class has getter and setters
now there is a guide.jsp
<s:iterator value="categories">
<tr>
<td>
<s:url id="categoryInformation" action="ShowCategoryInformation.action">
<s:param name="categoryName"
value ="" />
</s:url>
<s:a href="%{categoryInformation}">
<s:property/>
</s:a>
</td>
</tr>
</s:iterator>
i know how to display the value stored in the list .. i mean i can use this <s:property/>
but here I want to make the url
<s:url id="categoryInformation" action="ShowCategoryInformation.action">
<s:param name="categoryName"
value ="" />
</s:url>
and this VALUE in <s:param name="categoryName"
value ="" /> >
should be the the string present in th list..
can you please tell me how to get each string value from the list the value attribute of Param tag