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


Please Help Members By Posting Answers For Below Questions

How to build struts application in eclipse?

522


What are the benefits of the struts system?

565


What is the purpose of @after annotation?

581


What are result types in struts?

562


What is action class?

576






What are the aware interfaces in struts2?

543


What is the purpose of form-be tag in struct-config.xml?

554


What is the purpose of @action annotation?

562


How you will make available any message resources definitions file to the struts framework environment?

551


Describe the basic steps used to create a tiles application?

547


What is struts xml?

435


What is struts.devmode?

567


What is the purpose of execute method of action class?

556


Which interceptor is responsible for i18n support?

515


What is declarative exception handling in struts?

546