Do not use a servlet chaining mechanism. Instead use response.sendRedirect()  to
send the user to an other servlet page, if the user has logged in successfully,
else redirect him to the login page. hope this helps.

Cheers,
Amar..




Gary Moore <[EMAIL PROTECTED]> on 11/24/99 09:48:58 AM

Please respond to Gary Moore <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject:  Breaking out of Servlet Chain




Hello All,

        Does anyone know of a way to break out of a Servlet Chain?

        I am using Servlet Exec and I have set up a Servlet chain so that the
first
Servlet in the chain can perform user authentication. If the user does not
meet the requirements, the Servlet does a response.sendRedirect( ) and a
return in the doPost( ) to redirect the client to a login page. However,
this is not breaking the Servlet Chain, the request is still getting piped
through the chain.

Any help would be greatly appreciated.
Gary

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to