You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Frank W. Zammetti" <fz...@omnytex.com> on 2006/09/10 00:07:42 UTC
Re: how to forward user to a page after container manager authntication
?
Container-managed authentication works by intercepting a request for a
protected (constrained) resource and redirecting to the page with the
logon form. Once the user authenticated, the request for the
constrained resource continues, in effect, the user is "forwarded" to
what they requested in the first place. Therefore, to do what you want,
the request that results in the logon page being shown should be for
login_done (JSP? .do?) Make that the default document in web.xml if
that's what you need.
Frank
legolas wrote:
> Hi
> Thank you for reading my post
> how i can forward user to an specefic page after he/she successfully
> authenticated using form based authentication?
> if user fail to provide a wrong user/pass then he/she will be forwarded to
> login_error page , what if i need user to be forwarded to login_done after
> he/she logged in suggessfully ?
>
> thanks.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org