Re: struts validator

"Michael Nash JGlobal.com" <[email protected]> Thu, 3 Jun 2004 14:23:52 -0400
Newsgroups gmane.comp.java.keel.user
Organization JGlobal
Message-ID <20040603142352.211cc01a@jglobal>
Louis:

There is indeed a validation service/component, as part of the Model service. Doc is a bit thin (so far - we're working on it), but I can perhaps assist with a few examples. The idea is that it is pluggable, of course, like all other keel services - so far the only implementation is in svc-model-defaultmodel, but I have also looked at Intake as a possibility. Haven't tried it with Struts' validation layer, but I can't imagine why that wouldn't work as well.

As a first pass, I wanted to have the ability to test for required parameters (fields), and to check their values against a mask (a regular expression). That's what the current validation service does.

I'll hunt up my examples and post them here so you can have a look - I'm sure it can use improvement, and I look forward to your feedback!

Mike

On Thu, 3 Jun 2004 10:51:44 -0700
"Louis Moore" <[email protected]> wrote:

> Hi,
> 
> Is there any documentation or examples of how to use the struts
> validator framework within keel? Since Keel has only one action mapping
> and form-bean for the model action it seems like maybe the validator
> framework isn't a viable option unless I abandon the use of models and
> write my own struts actions. Is this the case or is there a way to
> configure the validator to work with keel models?
> 
> If the struts validator plug-in isn't supported well within keel I'm
> considering creating a keel validation service with the turbine-fulcrum
> project's intake service. 
> 
> Thanks,
> Lou
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org


-- 
Michael Nash

JGlobal Ltd 
Next-Generation Web Application Development and Open Source Support
http://www.jglobal.com

Bahamas Commerce and Trade
Offshore eCommerce Hosting and Business Services
http://www.bahamascommerce.com