facebook

JSR303 with Spring 3.0

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #322817 Reply

    giann_mga
    Member

    In Spring 3, we can enable “mvc:annotation-driven” to support JSR303 bean validation via @Valid annotation, if any JSR 303 validator framework on the classpath to validate data. How can i use this with Myeclipse? Any example?

    #322858 Reply

    cconway
    Member

    Hi giann_mga,

    If you scaffold a Spring 3 application in ME4S, you already have the <mvc:annotation-driven> configuration in your web-context.xml file. Also, when you scaffold, if you allow the scaffolding to configure your project’s dependencies, you will indeed have a JSR 303 implementation on the classpath because the Hibernate 3.5 dependency we add uses the hibernate-validator-4.1.0.Final.jar.

    However, we did not use the @Valid annotation so you would need to find spring examples from springsource or other resources on exactly how to use that from within your code.

    I hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSR303 with Spring 3.0

You must be logged in to post in the forum log in