Instead of just displaying list values using <s:property/>, i need to display it in textarea.The reason why i am doing this is <s:property/> does not have “name” attribute in order to submit the values to the action class. Is there any way to do that.I wrote down piece fo code below to make it clear so that you can understand my requirement though it is wrong.Please help me.
<s:iterator value="map" status="stat">
<s:textarea value="<s:property/>" />
</s:iterator>
As Jagan said, assume that
mapisjava.util.Listor
or
Assume map is
java.util.MapIteratorComponent
topis not a attribute ofiteratorand not a keyword ofOGNL. (I may be wrong)top : top of Stack / element of the current iteration
e.g.
or
Iterator tag examples of Struts2 Cookbook have better explanation