This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes ModelDriven in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ModelDriven in struts2" Watch "ModelDriven in struts2" New topic
Author

ModelDriven in struts2

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
Hi All,

I assume ModelDriven is a relation between Action and the JavaBean model (i.e in struts1 Action and ActionForm) am i right?

If i am right what is the purpose of removing ActionForm and introducing this modeldriven with interceptors???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

ActionForm is a Struts-specific class. ModelDriven allows the use of *any* class, making things easier to test, easier to use outside of Struts, and so on.
Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336


making things easier to test, easier to use outside of Struts


test as in JUnit et al? what's so easier then?

Outside of struts meaning say with a jsf or CGI et al

kindly clarify.... thanks...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ModelDriven in struts2
 
Similar Threads
How to access the property of action in case of ModelDriven
Struts : how to reload a Listing Page later.
Struts2 - How to declare name/scope for a Bean
Model driven validation
Repopulating form in struts2