wood burning stoves 2.0
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ModelDriven in struts2" Watch "ModelDriven in struts2" New topic

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

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...
I agree. Here's the link: http://aspose.com/file-tools
subject: ModelDriven in struts2
It's not a secret anymore!