File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copying formbean

 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since no one answered my last question, Im just gonna go with one form bean for all jsp pages which are all set and get in a set.

I have a follow up question though, is there anyway to set all the data(from the DB in a set) to my form bean at one go. or do i have to set them manually.


thanks
pranav
 
alan do
Ranch Hand
Posts: 354
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your struts-config.xml you can define a form-bean that has 1 property, say 'myFormBean' of type 'com.my.db.DTOBean'. you can pass the entire data object into the form property inside your action. in your jsp, you can refer to your object's properties using the reference 'myFormBean.lastName' etc. this expression language reference can be used inside the actions and validation.xml definitions as well.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic