Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 and modeldriven

 
Luis Silveira
Greenhorn
Posts: 4
  • 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
  • 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