Hi all,

I have servlet that provides runtime information on some of its values and
the status of its operations it controls.  I would like to be able to
provide a logon web page where a person can logon (username and password) to
the servlet securely.

I would accomplish this by:

1. Provide a HTML web page with username and password text boxes.
2. The user attempts to logon to the servlet by entering his or her username
and password.
3. The user clicks the submit button and the web page is sent to the
servlet.
4. The servlet gathers the user data and checks it against a database.
5. If the username and password are correct the servlet will create an
Authorisation object (java bean) and store it in the HttpSession object.
6.  The servlet then calls the Admin Console JSP page.
7. When the JSP page loads it will check the HttpSession object for the
Authorisation object.
8. If the object is there the JSP will display the servlet data.

Is this approach sound or would I need something better??

Best Regards

Marc

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to