File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 and modeldriven

 
Luis Silveira
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
I would like to ask you about using modeldriven in struts 2 and excludeMethods to disable validation on a method.
I have a form with text fields from a modeldriven class, and when I am using excludeMethods, like that:


After click on submit button all data from the modeldriven class are lost.
There is some way to save modeldriven data and at same time exclude a method from validation?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use @skipValidation annotation to avoid validation for a particular action.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic