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

What applications use apache struts?

507


Why it called struts?

568


Why are springs better than struts?

619


Explain the components of struts?

555


Why do we need mapdispatchtoprops?

484






What is switchaction?

671


Explain how can we upload files in struts2 application?

631


What is value stack?

632


What is difference between actionform and dynaactionform?

604


Why do we need struts?

548


What are the two scope types for formbeans?

618


What is struts?

593


What is lookupdispatchaction?

563


What is actioncontext?

559


What is the use of web xml in struts2?

529