I want to implement a login-session scheme like the following :

1. Login servlet stores some kind of user object that encapsulates user
information to current session if login is valid, and go to some top
page if no other information is provided.

2. Every other servlet first check if current session has valid user
object, and if not, redirect to Login servlet while giving all the
parameters that was given with request and the name of servlet itself.

3. Login Servlet check login, and redirect to the original servlet from
step 2 with all the parameters the original servlet from step 2
received, so that additional login process, which is typically due to
session timeout, will not block the action user wanted from the system.

When servlet is requested by GET method, it works fine. In step 2,
passing parameters and servlet name to Login servlet is done by
appending them to URL, and the same method can be used to pass
parameters from Login servlet to original servlet. However, if the
servlet is requested by POST method, I couldn't find a way to pass
parameters(some of which is typically too long for GET method's URL
encoding) to 'target' servlet with redirect method. I tried to store
information in session, but under the typical scenario of session
timeout, it will not be available after session timeout.

Is it possible to pass parameters to a servlet that is target of
redirect?


Won, Taewoong
[EMAIL PROTECTED]

___________________________________________________________________________
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