View Single Post
  #1 (permalink)  
Old August 19th, 2008, 04:02 AM
morbo morbo is offline
Registered User
 
Join Date: Aug 2008
Location: , , Finland.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Standalone validation + web form validation

Hi,

I'm currently investigating, whether it is possible to have one set of simple validation rules (as in, required/isInt etc) which could then be used to:

1) validate input from Struts forms
2) validate input from other sources, such as from an EJB?

I have Struts 1.1 using commons-validator 1.0.2 at my disposal.

So far I have been able to create separate validations for cases 1 & 2, but I would like to just use one set of rules and possibly the standard validators (e.g. "required").
Reply With Quote