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
How interceptor works in struts 2?
What is the purpose of @requiredstringvalidator annotation?
Describe the two types of formbeans.
What is the purpose of @stringlengthfieldvalidator annotation?
What is the apache struts vulnerability?
What is front controller in struts2?
What is difference between actionform and dynaactionform?
What is the role of action class?
What’s the difference between struts and turbine?
what is ACID test for fresh engineers??what is the pattern??
What is the purpose of @beforeresult?
How can we display validation errors on jsp page?
In struts, how can we access java beans and their properties?
Explain about the process of functioning of the struts program?
What is the purpose of @before annotation?