Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 and modeldriven  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!