Tuesday, April 1, 2008

Iterating a List Value Struts2

<s:if test=""> 0"> <s:iterator value="#session.categorys"> <li><a href="<s:url action="itemlisthome.action"><s:param name="catalogid" value="#session.catalogs[catalogid-1].id"> <s:param name="categoryid" value="#session.categorys[id-1].id"> </s:url>"> <s:property value="#session.categorys[id-1].name"> </a> </li> </s:iterator> </s:if><s:if test=""> </s:if>

0 Comments: