CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Originally posted by Gerry Giese:
I was looking at a flyer for the JavaTech Summit at the WebBuilder Conference in New Orleans next month, and noticed one particular seminar that caught my eye because I'll need to be writing code to do this soon: OO Form Validation and Error Checking with JSPs. Does anyone know of any existing JSP or generic libraries that do this? Or does anyone have a snippet of example code they'd be willing to share? Or a book with examples to recommend?
The main things that I see the need for in validating forms are checking for required (not null) fields, numeric-only or text-only, min/max length, and illegal or program-busting characters. Oh, and some class or something that recognizes encoded characters and converts them back to ASCII (such as %20 (percent twenty), � (non-breaking space), etc).
Quick tech question: when doing validation, do most people post back to the same JSP when the form is submitted, and then when it finally checks out OK just forward request to a different JSP or servlet?
Thanks!
homeboy
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Consider Paul's rocket mass heater. |