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
What is purpose of execandwait interceptor?
What is dispatch action class?
What is front controller in struts2?
What is lookupdispatchaction?
How interceptor works in struts 2?
Which file is used by controller to get mapping information for request routing?
What is the purpose of struct-config.xml in struct2?
What is http forward?
What are the classes used as part of struts framework ?
What configuration changes are required to use Tiles in Struts?
What is discontinuous strut?
Explain about struts relation to html tags?
Which class of struts is responsible to converts data types from string and vice versa?
What is the use of Struts.xml configuration file?
Explain architecture of struts2?