aspose file tools*
The moose likes Struts and the fly likes Prepare,ModelDriven interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Prepare,ModelDriven interface" Watch "Prepare,ModelDriven interface" New topic
Author

Prepare,ModelDriven interface

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188




There is one html form[not shown] asking for person details and is targetted to this myAction class.
The prepare method gets automatically called by framework which will create bare person object after that getModel method will be called by the framwork which will return the object created by prepare method and will put it on value stack.
Now the question is, does the framework automatically uses that person object put by getModel method to set the values from the html form or do we have to write some code to do so
and in this case theres no execute method in myAction class, is it fine?

I am slow but sure
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Couldn't you just try it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prepare,ModelDriven interface