Prashant Singh wrote:
<s:iterator value="products" >
<tr><td><a href="astralpharma/showpdtsupp.action">
<s:property value="productName"/></a></td></tr>
</s:iterator>
There are a few ways to do it; here's two.
<s:iterator value="products" >
<a href="astralpharma/showpdtsupp.action?productId=<s:property
value='productId'/>">
<s:property value="productName"/>
</a>
<s:url var="pidUrl" action="showpdtsupp" namespace="/astralpharma">
<s:param name="productId" value="productId"/>
</s:url>
<a href='<s:property value="pidUrl"/>'>
<s:property value="productName"/>
</a>
</s:iterator>
All of these topics are covered in the Struts 2 documentation, which I'd
recommend reading before getting too much further into your project.
There are at least a couple more variations, but this should be enough
to get you started.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org