Logo of Bento frameworkspaceObject Oriented Programming


JBuilder 2007

LoginManager

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 ... ]

Introduction ...

Given the pair of the user name and password (or the e-mail address), this API issues the unique session ID for each user login. In the HTTP response from your Servlet, the generated session ID:

Or, you may want to store the ID into the HttpSession if your web application depends on Cookie. Anyway, on the destination Servlet, this API verifies the session ID and can identify the user (and the group to which the user belongs). In addition, Servlet can bind the key-value pair for each session ID and refer it in the subsequent HTTP request, just as you do on the HttpSession object. By this way, your web applications on Apache Tomcat can track a series of HTTP requests from each user, independently from Cookie and Realm.

Access privilege control ...

Please click the link below and look into the configuration XML for this API:

[ Example XML for LoginManager ... ]

As you guess, it defines the privileged groups for each request path. Upon each request, this API checks if the user has the access privilege to the request path or not. In case that the session ID is embed in the request path, the source code of the controller Servlet can be very simple. Please click the link below and look into the source code example:

[ Source code example ... ]

Please note that the controller Servlet catches a series of Exceptions that may be thrown by this API.

Read Java doc / FREE Download

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

Java doc README
Trial License Product License (PDF)
Download

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

Valid XHTML 1.0! Valid CSS!