wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts problem" Watch "Struts problem" New topic

Struts problem

Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

I have a problem with transfering data from actions to jsp files ,
I have a resultset is action class , which i retrive from database , now i want send it to a jsp file to display , what is best option for transfering ResultSet to view ?

thank you.

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
I use this sort of thing -

private void transferValues(ActionForm form, ProjectProgress_DTO oProgress)
DynaActionForm frm = (DynaActionForm)form;

frm.set("progressdate", oProgress.getProgressDate());
frm.set("progress", oProgress.getProgress());

where oProgress is a bean with the values received from the database. Just do the opposite when saving

hope this helps!
Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

hi ,
Thank you very much for your help .
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts problem
Similar Threads
Sending class file through a network
Insertion Of Data
Transfering images
how to transfer data using our web application to another web application
Urgent Java interview question 6+ yrs exp.