HtmlToXmlEdit Tutorial: > Input validation from CGI FORM by XML
Previous Page Contents Next Page
OOP-Reserch home page

Contact Us

Input validation from CGI FORM by XML

Input validation by XML...

HtmlToXmlEdit is the XML editor for the XML which is generated by HtmlToXml.
HtmlToXml is the HTML-to-XML conversion tool with Java Swing GUI, which is developed by OOP-Reserch. HtmlToXml reads a pair of the normal HTML, one for the valid case and another for the invalid case. While in the conversion, it asks you to specify the acceptable data type for each request parameter. And it write out all these information into a single XML. The generated XML can be loaded by our Java API within your Servlet, and will be used for the input validation from the CGI FORM.

Unlike JSP/JSTL based-solution (such as Apache Struts and JavaServer Faces), the web designers (or page authors) need not learn even a bit about custom tag libraries. What you (Java programmer) need is a pair of the normal HTML!

In addition, this XML makes Localization (L10n, Japanese message for Japanese users and Chinese message for Chinese users) much easier than the JSP/JSTL based-solution, such as Apache Struts and JavaServer Faces. Localization (L10n) by the JSP/JSTL fully depends on the resource bundle, i.e. the localized messages should be written in the property resource files in case of Apache Struts or JavaServer Faces. As for HtmlToXml, all the localized messages can be included in the normal HTML. Localization (L10n) is now the responsibility of the web designers (or page authors), and you (Java programmer) need not prepare the additional resources for Localization (L10n).

Moreover, HtmlToXml can read any kind of mark-up language, such as such as XHTML, WML or HDML. In case of WAP service development, what you need is a pair of XHTML, WML or HDML. You need not implement any custom tag libraries for rendering the response for XHTML, WML or HDML.

Once you generate the XML by HtmlToXml, you can edit it by HtmlToXmlEdit. This is the step-by-step tutorial for HtmlToXmlEdit.
As for the conversion from HTML to XML, please read another tutorial, which describes the details about HtmlToXml conversion tool.

Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.


Previous Page Contents Next Page
OOP-Reserch home page

Contact Us


ALL CONTENTS COPYRIGHT 2002, Jun Inamori. All rights reserved.
Any questions and comments are welcome to Jun Inamori .