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

how to connect from struts to database through hibernet and where u can modify the class

2291


How to work with error tags?

743


What is the difference between session scope and request scope when saving formbean ?

747


What is the purpose of @before?

740


Are struts and shocks the same?

669


What is the purpose of @requiredstringvalidator?

726


What are the core classes of the struts framework?

690


What is actioninvocation?

712


What is difference between lookupdispatchaction and dispatchaction?

846


Explain about struts relation to html tags?

722


Why do we use struts?

822


Explain about tiles?

777


What is the default location of result pages and how can we change it?

756


Why do we need struts?

698


When should be opt for struts framework?

794