How to forward from Array List to Jsp in Struts
ActionServlet class?
Answer Posted / amit kumar
hi
i think make a bean of list with setter and getter
and use logic:iterate in jsp
in action
itemForm.setItems(itemDAO.searchRecord(itemId));
in jsp
<logic:iterate id="itembean" property="items" name="itemForm">
Item Id:
<bean:write name="itembean" property="itemId"/>
so on....
</logic:iterate>
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What is controller in struts ?
Give an example where struts tiles may be used?
What is spring and struts in java?
What are the classes used in struts?
What is actioninvocation?
Why was reload removed from struts (since 1.1)?
What is the purpose of @element?
What configuration changes are required to use Tiles in Struts?
What is validate() and reset() functions?
What are action errors and error and what are the consequences they impose?
How to use forward action to restrict a strut application to mvc?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the purpose of @urlvalidator annotation?
What is apache struts vulnerability?