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?

Answers were Sorted based on User's Feedback



How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / karnakar

in actin class take session object and add that object
(array list object)that is session.setAttribute("al",a)
and forawrd response to jsp ,read arraylist object in jsp
by using session.getAttribute("al");

Is This Answer Correct ?    9 Yes 4 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / karnakar

in actin class take session object and add that object
(array list object)that is session.setAttribute("al",a)
and forawrd response to jsp ,read arraylist object in jsp
by using session.getAttribute("al");

Is This Answer Correct ?    5 Yes 3 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / 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

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / ravikiran(aptech mumbai)

inaccordance with the scope of the bean set the attribute in
the particular scope

Is This Answer Correct ?    4 Yes 4 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / venkateshwararao

In action class take request object and add ArrayList object
to request by using request.setAttribute("arraylist"al);
and forward to jsp using ActionForward
af=mapping.findForward("name");
In the jsp we have retrieve by using core tag library or
struts tag library.

Is This Answer Correct ?    0 Yes 0 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / mahesh

by putting list object in request object u can pass it in
jsp
By
Mahesh
+919970564444

Is This Answer Correct ?    4 Yes 5 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / y

hi friends,
i think
by using return mapping.findForward("");
we can forward.

Is This Answer Correct ?    6 Yes 10 No

How to forward from Array List to Jsp in Struts ActionServlet class?..

Answer / susan

the most advanced way is using tag library

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More Struts Interview Questions

In which method of action class the business logic is executed?

0 Answers  


What is Model 1 and Model 2?

3 Answers  


How is forward action used for integration?

0 Answers  


What is the difference between struts and spring?

0 Answers  


How do struts work?

0 Answers  


How properties of a form are validated in Struts?

0 Answers  


What is the purpose of @doublerangefieldvalidator?

0 Answers  


What is the differences between struts1 and struts2?

0 Answers  


What are Struts2 core components?

0 Answers  


Hi All thanks in advance, iam new to j2ee currently in my project we r using struts with hibernate can i have one sample application like CRUD application with code or any tutorials liks r ebooks plz....?

1 Answers   IBM,


What is the purpose of @requiredstringvalidator?

0 Answers  


What is the different actions available in struts?

0 Answers  


Categories