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 the purpose of plug-in tag in struct-config.xml?
Difference between struts and spring?
Describe the mvc on struts?
Define struts?
How you will enable front-end validation based on the xml in validation.xml?
Why was reload removed from struts (since 1.1)?
How can we integrate log4j in Struts2 application?
What are the life cycle methods of interceptor?
What is the use of form bean in struts?
How the exceptions are handled in struts?
What are the pros of struts 2?
What is interceptor? And life cycle methods of interceptor?
What do you mean by actionform?
How does one create an action in struts 2?
What is the purpose of @doublerangefieldvalidator annotation?