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 are frameworks used?
project architechture in java
3 Answers AC, IBM, INDUS, Satyam,
What is role of actionservlet?
How can you create your custom interceptor in struts 2?
What are the aware interfaces in struts2?
What are different ways to create Action classes in Struts2?
How can we integrate log4j in Struts2 application?
What is the procedure of operation of a form tag?
What is the naming convention for a resource bundle file in struts2?
Which design pattern is implemented by Struts2 interceptors?
What is the purpose of '@keyproperty'?
What is the apache struts vulnerability?