Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ModelDriven in struts2

 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic