Hi,
I am very new to Struts 2. I am trying to do this:
listOfRestaurantsByDeliveryPin will give list of Restaurant object,
which have name and id properties. I want to display the name of
restaurants as a link, and when user clicks it, go to the action with
restaurant id as request param.
But passing property as value to s:param does not work.
<s:iterator value="listOfRestaurantsByDeliveryPin" >
<li>
<a href="<s:url action="RestaurantAction"
method="getMenuCardForRestaurant">
<s:param name="id" value="<s:property value="id"/>"/>
</s:url>"><s:property value="name"/></a></li>
</li>
</s:iterator>
Thanks,
Anubhav