wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts 2 and modeldriven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and modeldriven" Watch "Struts 2 and modeldriven" New topic
Author

Struts 2 and modeldriven

Luis Silveira
Greenhorn

Joined: Aug 02, 2012
Posts: 4
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

Joined: Aug 01, 2007
Posts: 485

You can use @skipValidation annotation to avoid validation for a particular action.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 and modeldriven
 
Similar Threads
NullPointerException @ validation interceptor
Struts 2 InterceptorStack Issues
Replacing an Interceptor in the Default Stack
Struts 2 file upload tag type allowed error
Struts 2 Fileupload problem