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 strut web xml?

1003


What is spring and struts in java?

1045


Are struts still used?

978


What is the purpose of redirect result type?

1070


What are apache struts?

976


What do you mean by actionservlet?

1042


What is the purpose of @createifnull annotation annotation?

1088


What does modeldriven interceptor?

1151


What are action classes in struts?

1012


Can we handle exceptions in Struts programmatically?

1013


Are actions thread safe?

1039


What is actionservlet?

1056


Explain about struts?

1018


What are the two scope types for formbeans?

1314


What are the 5 constants of action interface?

1067