aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts problem" Watch "Struts problem" New topic
Author

Struts problem

Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Hi
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
Author
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