> I'm in the process of writing a web application to validate new users
> signing up to a service we provide. What I want to do is to take user
input
> via a standard HTML form, validate the information on the client side, and
> if there are any errors redisplay the original page and inform the user of
> the problems. I am currently thinking of the following way to do this:
You might want to take a look at Struts for doing this kind of thing. Struts
is a full MVC model II framework for building web apps.
http://jakarta.apache.org/struts/index.html
> Having just seen the article on form validation on javaworld, I would like
> to of used that instead, but it doen't allow usage in a commerical product
> :-(
Yes. One of these days I'd like to get a simple, lightweight, decoupled form
validator package that is similar to that described in the javaworld
article.
I saw that Baracuda contains a form validation package that looks
interesting:-
http://barracuda.enhydra.org/index.html
http://barracuda.enhydra.org/cvs_source/Barracuda/docs/forms/forms_brief.gif
though I'm not sure how dependent it is on other stuff (XMLC et al) - I'd
rather it be a seperate independent package that could be used independently
of the other Baracuda stuff.
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com