• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring 2.5.6 bean annotation validation

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use Spring 2.5.6, OSGi, Eclipse and want to implement bean annotation validation.
e.g.


I had read the following links:
http://blog.jteam.nl/2009/08/04/bean-validation-integrating-jsr-303-with-spring/
http://stackoverflow.com/questions/149506/annotation-based-spring-bean-validation
http://wheelersoftware.com/articles/spring-bean-validation-framework.html

Do my java program has these imports?


Which jar(s) do I need?
Do I download the jar(s) from Spring Modules 0.9 from
https://springmodules.dev.java.net/?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes - those validation annotations are from the springmodules project you linked.

JSR 303 validation is an up-and-coming standard, and the springmodules validation isn't being actively developed any more in favor of it. If you want to use this instead, you'll need Hibernate Validator (which is the JSR 303 reference implementation, and isn't tied to Hibernate (the software) but is developed by Hibernate (the people who make the software)).
 
albert kao
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do Spring 2.5.6 support the jar(s) from hibernate-validator-4.0.2.GA-dist.zip?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

albert kao wrote:Do Spring 2.5.6 support the jar(s) from hibernate-validator-4.0.2.GA-dist.zip?



Probably not much help, but Spring 3.0 fully supports JSR-303

Mark
reply
    Bookmark Topic Watch Topic
  • New Topic