I have a jsp custom tag that validates a submitted form. The tag builds an
object on both the server and client for handling required and grouped
element validation. The validate has a child tag that listens for an error
concerning it's assigned element and in the event that JavaScript has been
turned off it will output the error at the position of the page where it was
placed. Both tags support a wealth of options for grouping elements based on
conditions and validating against a regular expression.

I would like to make it possible for the end user create an XML file that
would describe the form to be validated and save them all of the extra
typing into tag attributes. I have been reading through the
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/xml/parsers/package-summ
ary.html and
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/package-summary.ht
ml packages. I have not tried to use Java to read an xml file yet and some
advise about how to approach it would be appreciated. In a nut shell all I
want to do is read in the attributes for each element so that I can output
the client side object and build the server side object to validate the
elements of the form.

Sorry so long winded.

Thanks in advice.

Bryan LaPlante
President
Network Web Applications Inc.

===========================================================================
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

Reply via email to