Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 interceptor works in struts 2?

1043


What is the purpose of @requiredstringvalidator annotation?

928


Describe the two types of formbeans.

998


What is the purpose of @stringlengthfieldvalidator annotation?

1097


What is the apache struts vulnerability?

940


What is front controller in struts2?

1075


What is difference between actionform and dynaactionform?

1030


What is the role of action class?

1036


What’s the difference between struts and turbine?

1188


what is ACID test for fresh engineers??what is the pattern??

2780


What is the purpose of @beforeresult?

1013


How can we display validation errors on jsp page?

1008


In struts, how can we access java beans and their properties?

1021


Explain about the process of functioning of the struts program?

1027


What is the purpose of @before annotation?

997