B
Bharath
I have a web-application (WebApp_1) running on Tomcat.
The security is Tomcat Container-managed security --
it is FORM-based. The login page is a servlet,
/servlet/loginHandler
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/servlet/loginHandler</form-login-page>
<form-error-page>/fail_login.html</form-error-page>
</form-login-config>
</login-config>
Two types of users can access my application.
And depending on that, I want to provide appropriate
login pages say
http://<ipaddress>/englishLogin.jsp and
http://<ipaddress>/spanishLogin.jsp
When I access either of these pages, Tomcat invokes
/servlet/loginHandler.
The question is:
When I am in /servlet/loginHandler servlet, I don't
know which URI was accessed. So, while in the
loginHandler servlet how do I access the information
related to the actual URL sent by the browser
(englishLogin.jsp or spanishLogin.jsp)
I'd appreciate any help in this regard.
P.S. I tried adding custom information in HTTP header
so that I can use that information in loginHandler but
that is not a feasible solution.
The security is Tomcat Container-managed security --
it is FORM-based. The login page is a servlet,
/servlet/loginHandler
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/servlet/loginHandler</form-login-page>
<form-error-page>/fail_login.html</form-error-page>
</form-login-config>
</login-config>
Two types of users can access my application.
And depending on that, I want to provide appropriate
login pages say
http://<ipaddress>/englishLogin.jsp and
http://<ipaddress>/spanishLogin.jsp
When I access either of these pages, Tomcat invokes
/servlet/loginHandler.
The question is:
When I am in /servlet/loginHandler servlet, I don't
know which URI was accessed. So, while in the
loginHandler servlet how do I access the information
related to the actual URL sent by the browser
(englishLogin.jsp or spanishLogin.jsp)
I'd appreciate any help in this regard.
P.S. I tried adding custom information in HTTP header
so that I can use that information in loginHandler but
that is not a feasible solution.