Logo of Bento frameworkspaceObject Oriented Programming


JBuilder 2007

RequestParser

Free source code example for Bento framework...

Seeing is believing! First of all, please enjoy the example of Bento framework that is running on our web site. It is the simple photo Blog where you can upload the image files by your web browser (multipart/form-data), or e-mail with file attachment. After you grasp how it works, please explore its source code. The source code of the example is included in the FREE trial version of Bento framework.

[ Try and download example ... ]

Glue between MVC (Model-View-Controller) ...

This API plays a role of glue between the MVC (Model-View-Controller). To grasp the whole picture of Bento framework, please read Introduction of Bento framework.

Do you really need the decoded parameters ?

When your JSP/Servlet receives a set of the HTTP request parameters, it is common to call:

(or its variants) for your JSP/Servlet to get their values. Because the HTTP request parameters are sent in the form of URL-encoded String, the above method includes the repeated conversion between the String and byte arrays behind the scene. But, as you know, the JSP/Servlet specification (at least, up to Version 2.4) does not define the methods to get the request parameters in the intermediate stage. Because only the request parameters in the form of the decoded String (that is the original String) are human readable, we tend to think that we always need them. But, in fact, it is not always true. There are the cases that the URL-encoded String or the byte arrays are enough. This Java API implements the methods for getting the request parameters in any stage. Please click the link below and see the source code example:

[ Source code example of RequestParser ... ]

Note that each method triggers only the conversions that are required at that point. And the converted parameters are kept in the cache to avoid the repeated conversions. RequestStore, another API in Bento framework, depends on this API to save the request parameters into the SQL table in the way that is independent from their character encoding.

Read Java doc / FREE Download

You can read the Java doc for this API online. Or it is included in the distribution of this API and you can download it at FREE.

Java doc README
Product License
Download

Copyright © 1997-2008 OOP-Research CorporationTM, All Rights Reserved.

Valid XHTML 1.0! Valid CSS!