But its not bad either for basic form validation (null, range checks & like)
and much better than using Javascript. I dont think any backend will rely
upon JSP validation and wont perform its own tests prior to saving the data.

It definitely simplified some JSP pages for us where as we have to call
custom methods for extended validation. The idea is not to clutter JSP pages
only for basic form validation etc.

Tahir

-----Original Message-----
From: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: development issues


Yes, it is true that regex cannot do everything.  It's like perl and java.
Perl is good for performing regex's on text files with a bit of logic here
and there but for use in a content management system I find it just too
limiting.  A bit of Java would do this much better.


Taylor

----- Original Message -----
From: "Jim Richards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 9:11 AM
Subject: Re: development issues


>
> >In Dec-2000 issue of Javaworld, there was an article by "Thor
Kristmundsson"
> >about enhancing Struts framework with regex validation and automatic
> >properties. Though the article is outdated due to recent development in
> >Struts but I liked the idea and spent some time implementing it.
>
> I'm not keen of using regex for the validation of form fields, as I find
them too
> limiting. There are somethings you just can't do with regex that a general
> bit of coding can handle (eg, credit card validation and good date
checking).
>
>
> --
> Kumera - a new Open Source Content Management System
> for small to medium web sites written in Perl and using XML
> http://www.cyber4.org/kumera/index.html

Reply via email to