![]()
|
|||||
OOP FormGenerator API : Simpler than JSP, JSTL, Apache Struts or JavaServer Faces / Input validation from CGI FORM / Easy localization (L10n) / Servlet in Japanese Shift_JIS, Chinese BIG5 or GB2312
Servlet by template XML. Simpler than JSP/JSTL, Apache Struts or JavaServer Faces. Input validation from CGI FORM. Localization (L10n). Servlet in Japanese Shift_JIS, Chinese BIG5 or GB2312.
This API is deprecated. Please use OOP ViewGenerator instead of this API. Related Pages:
|
|||||
This API is deprecated.Please use OOP Bento Framework instead of this API. Within OOP Bento Framework, you can deploy all the existing XML for this API. This means that OOP Bento Framework takes over all the benefits of this API. Servlet response by the normal HTML!
Believe or not, all the response from your Servlet can be written in just the normal HTML (or any mark-up languages such XHTML, WML or HDML)!
Unlike the JSP/JSTL based solutions like Apache Struts or JavaServer Faces, the web designers (or page authors) of your project need not know even a bit of the custom tag libraries.
Once the response is written in the normal HTML, it's time to run HtmlToXml conversion tool:
This Java Swing GUI based conversion tool generates the template XML for the Servlet response. Once you generate the template XML, you can edit it by HtmlToXmlEdit, another GUI tool in this Java API.
Both of these tools are included in OOP FormGenerator API. When you work with these tools, please save the template XML into:
This Servlet reads the template XML which is saved as:
Input validation from CGI FORM by XML
While interacting with the user, each text field in your CGI FORM expects the specific pattern of input.
For example, the user should type only the digit (0-9) in some text field of your CGI FORM.
If s/he sends the wrong input, the destination Servlet should detect it and show the same CGI FORM again.
But the CGI FORM at this time should include all the previous inputs in it as the default value.
In addition, the wrong input should be indicated by the colored font or something:
By the help of OOP FormGenerator API, a few lines of code are enough for the input validation in your Servlet. When you work with HtmlToXml, you can specify the acceptable data type for each request parameter from the CGI FORM:
Along with the set of the HTML tags, these information are also written into the template XML. Given these information from the XML, your Servlet can check all the request parameters at once. For details about the input validation, please try and download the first example of OOP FormGenerator API:
Easy localization (L10n)
In case of the JSP/JSTL based solutions like Apache Struts or JavaServer Faces, the localized messages should be written in the property resource file for each Locale.
In the template solution by OOP FormGenerator API, the localization (L10n) of your Servlet is much easier.
Please prepare the normal HTML in as many human languages as you like (each of them will includes the localized message for the expected Locale).
Because all the localized messages can written in the normal HTML, there is no difficulty even in the 2 byte characters such as Japanese Shift_JIS, Chinese BIG5 or GB2312.
Performance improvement by pooling mechanism:
When the FormGenerator object reads the XML, all the information in the XML are cached in the pool.
So, the same XML is read only once within the life cycle of the Servlet.
These pooling mechanism ensure the significance performance improvement of your Servlet.
Download:
-- 90.00 USD with 1 year FREE upgrade
You can try or purchase this product at Java API Shop by OOP-Research.
|
|
||||
|
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries. |
|||||
|
ALL CONTENTS COPYRIGHT 1997-2007, OOP-Research Corporation. All rights reserved. |
|||||