Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass Arraylist to the JSP from the Action Class

 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.setAttribute(String s, Object o);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic