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 do you mean by inner class and anonymous class?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
How is the action mapping specified?
What is the difference between struts1 and struts2?
What do you mean by actionmapping?
What are the steps of struts installation?
What does action do in struts?
What’s the utilization of resource bundle properties file in struts validation structure?
Can you give an overview of how a struts application flows?
What is the purpose of @stringlengthfieldvalidator annotation?
How do you create message resource?
Can we integrate struts with spring?
What is the difference between requestaware and servletrequestaware interface?
What are the contents on web.xml in struts application ?
Explain integrate log4j in struts2 application?