File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
[Struts2] losing display only(prepopulated) values of the form if the validaiton fails
Struts2 annotation validation
Why ModelDriven not working?
Struts2 problem with ModelDriven interceptor
Struts2 Model Driven question for a complex model