Hi, Check out the Tag Interface Component Library (TICL)from http://www.kobrix.com (it's not free for commercial and goverment use, though). From the above web site:
HTML forms are the cornerstone of browser-based programming. In TICL, every standard HTML form field is mapped to a server-side component and encapsulated into a custom tag providing various extensions reflecting common WEB programming practices. For instance, a label attribute lets you attach a label and position it anywhere around the form field, a tooltip attribute lets you associate a classical tooltip to a field, appearing when the mouse goes over it. As another example, you can associated a redirect URL with individual items of a select dropdown control and server-side command handling functions (invoked through Java reflection) with buttons and form submitting links. In addition, since every form field is a TICL component, you can process form submits by working with the TICL forms component API which provides a clean conceptual layer on top of the plain text HTTP request parameters. and for validation: TICL comes with a form validation mechanism that allows you to concisely and easily specify the conditions under which a given form field or a group of inter-dependent fields is valid, all in purely declarative contextual way. A set of special purpose tags lets you declare validation rules and instruct TICL to evaluate them either at the server, once the form has been submitted, or at the browser before the form is submitted, or even while the end-user is typing her input! The validation rules are extremely general and flexible - they allow you to define dependencies between form field values by specifying things like "apply this validation rule when the value of that field is A and the value of that other field is not empty", for example. Error reporting is done in a similar fashion, namely by declaring rules triggered by TICL when a given field or form becomes invalid or in general when a validation error of a certain type occurs. A form is never processed, i.e. button command handlers are not invoked and a form submit event is not generated, whenever there is an invalid field in the form. All this allows to completely isolate form validation from the form specification and from the form processing. Hope this helps --- Ethan Schroeder <[EMAIL PROTECTED]> wrote: > Hi, I was just wondering if anyone could point me at > a robust form/input taglib which includes built-in > validation, such as required fields, regex pattern > matching, etc. I have done a lot of searching, but > I haven't really found anything remotely close to > what I have envisioned as useful. Thanks a bunch in > advance. > > Ethan > > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
