Hai all.What is the use of <logic:iterate>tag in struts
application.
Answers were Sorted based on User's Feedback
Answer / shirish
<logic:iterate> tag is used iterate over a collection in a
particular scope. The tag defines scope attribute which
defines the scope where to look for the collection. If not
defined following scopes are searched in order page,
request, session and application. This tag can also be used
to iterate over Maps and arrays.
| Is This Answer Correct ? | 18 Yes | 1 No |
If we assigned the resultset to any list or collection and
want to dispaly it on jsp this tag more useful
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sai
<logic:iterate> repeats the nested body content of this tag
over a specified collection.
Ex:
<logic:iterate id="customer" name="customers">
<tr>
<td><bean:write name="customer" property="firstname"/></td>
<td><bean:write name="customer" property="lastname"/></td>
<td><bean:write name="customer" property="address"/></td>
</tr>
</logic:iterate>
| Is This Answer Correct ? | 2 Yes | 0 No |
Why actionservlet is singleton in struts?
What is the use of ActionErrors in Struts?
What do you mean by actionmapping?
Why are springs better than struts?
What are the main classes which are used in struts application?
What is the default suffix for Struts2 action URI and how can we change it?
How do I access token?
Briefly tell the two kinds of form beans.
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
Explain about the library tag?
What is the use of token interceptor in Struts2?
Can u call Action class methods fro struts-config.xml file?