Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts problem

 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
A Harry
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
Thank you very much for your help .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic