File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to pass Arraylist to the JSP from the Action Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to pass Arraylist to the JSP from the Action Class" Watch "How to pass Arraylist to the JSP from the Action Class" New topic
Author

How to pass Arraylist to the JSP from the Action Class

Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Hey there....Actually in the Action class i am retrieving the list of Vehicles in ArrayList and i want to pass this ArrayList to the success page(response.jsp)

Action Class
[
retrive the Arraylist

return mapping.findForward("success");//response.jsp page

]

I want the Arraylist to be accessed in response.jsp page...I know if i will store it in the session ..i will be able to get it ...Is there an other way in struts......Thanks in Advance


SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
request.setAttribute(String s, Object o);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass Arraylist to the JSP from the Action Class