Results 1 to 3 of 3

Thread: Validation bypass

  1. #1
    Join Date
    Aug 2008
    Posts
    1

    Default Validation bypass

    Hello!

    Is it possible to bypass the validation with Spring MVC?
    If yes, how?

  2. #2
    Join Date
    Aug 2008
    Location
    St Louis, MO
    Posts
    51

    Default

    Are you using the SimpleFormController? If so you can set the validateOnBinding property to false.

    Code:
    <bean id="" class="yourControllerClass">
      <property "validateOnBinding" value="false"/>
    </bean>

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    That will always disable validation. If you want to have some more control over it simply override/implement the method 'suppressValidation' and put some logic in there.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •