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

What is purpose of execandwait interceptor?

1092


What is dispatch action class?

1090


What is front controller in struts2?

1082


What is lookupdispatchaction?

1025


How interceptor works in struts 2?

1050


Which file is used by controller to get mapping information for request routing?

1062


What is the purpose of struct-config.xml in struct2?

978


What is http forward?

976


What are the classes used as part of struts framework ?

959


What configuration changes are required to use Tiles in Struts?

1012


What is discontinuous strut?

937


Explain about struts relation to html tags?

971


Which class of struts is responsible to converts data types from string and vice versa?

1082


What is the use of Struts.xml configuration file?

933


Explain architecture of struts2?

1104