This week's book giveaway is in the Python forum.
We're giving away four copies of Hello World and have Warren & Carter Sande on-line!
See this thread for details.
Win a copy of Hello World this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Spring framework, module and Jakarta Commons

 
Ranch Hand
Posts: 193
Mac OS X Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am bit comfused about these 3 technologies.

1. Spring framework
2. Spring module (say 0.5 the latest version)
3. Jakarta Commons

What is the relationship between them?

I know that Spring modules provide added-on features for Spring framework..but what is the relationship between Jakarta Commons and them?

In my project, I used some sort of validation technique ( I think combined with these 3 things but not sure)..

Now what is the difference between
1. Spring framework validation..
2. Spring module validation..
3. Jakarta Commons validation..

They use different API, arent they? Is spring module validation use Jakarta Commons validations??

I need some explanation on this, Thank you in advance.

Kind Regards,
Jiafan
 
Jiafan Zhou
Ranch Hand
Posts: 193
Mac OS X Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody knows this?
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jiafan,

Spring MVC has a Validator interface, you provide an implementation, and Spring MVC will invoke the validator for you at a set time, for example on receiving a form submission.

Jakarta Commons Validator provides a validation framework where you can set up declarative validation of Javabeans.

Spring Modules (Validation) basically makes Jakarta Commons Validator available as a Spring Validator, so you can use it to validate Javabeans defined in your Spring configuration files.

Using Commons Validation with Spring for Declarative Validation by Matt Raible might make a good starting point for you.

HTH

Sonny
 
Jiafan Zhou
Ranch Hand
Posts: 193
Mac OS X Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool stuff..

Another question I have, I am not validating a web application but a standalone application. So in that case, is it possible to use Jakarta commons and is there an example for that situation?

Kind regards,
Jiafan
 
Sonny Gill
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Spring Validator interface is not tied down to Spring MVC, so You can definitely use it in a standalone application.
The only difference would be that you will need to get a reference to the Validator and invoke the validate method yourself.

Perhaps something like -


If you do a search in Spring forums or documentation, you should be able to find some examples.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!