dcsimg
Returning a Collection of ValueObjects filled with ResultSet data back to the forwarded Struts from the Action page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steve_Zimmerman
Posted On:   Wednesday, July 16, 2003 01:44 PM

I am a Struts newbie and that being the case I can't seem to get the data from my database back to my view. I realize that there are software packages that will help me do this (i.e. Scaffold) but I would like to be able to do this the vanilla way and then integrate the other more complex items later. Anyway... in my Action class I get the ResultSet and place the data in a Collection. How does this pointer get back to my jsp? I have searched but can't quite find the right answer with a code example... :)
Thanx, Steve

Re: Returning a Collection of ValueObjects filled with ResultSet data back to the forwarded Struts from the Action page

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, July 17, 2003 06:20 AM

request.setAttribute("somename", yourCollection);

About | Sitemap | Contact