R
Rusty Bawa
Greetings,
I was wondering if anyone found a workaround the following mystery.
I have a tomcat ver. 5-24 that uses realm authentication.
I use form authentication, which, by the way, work great. Below is the
snip from my web.xml file
<security-constraint>
<web-resource-collection>
<web-resource-name>User Section</web-resource-name>
<description>no description</description>
<url-pattern>/protected/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>no description</description>
<role-name>tomcat</role-name>
</auth-constraint>
<user-data-constraint>
<description>no description</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp?error=true</form-error-page>
</form-login-config>
</login-config>
when i try to access any files in the protected directory i am
redirected to
login.jsp, as expected. the IE location bar says
http://xxx.xxx.xxx.xxx/login.jsp
when i enter incorrect name/password i am redirected back to login.jsp
with querystring error=true. so the above configuration works.
But the IE location bar says http://xxx.xxx.xxx.xxx/j_security_check
is there a way to show the http://xxx.xxx.xxx.xxx/login.jsp?error=true
instead of http://xxx.xxx.xxx.xxx/j_security_check? this could be
confusing to users.
Any help is appreciated.
Rus
I was wondering if anyone found a workaround the following mystery.
I have a tomcat ver. 5-24 that uses realm authentication.
I use form authentication, which, by the way, work great. Below is the
snip from my web.xml file
<security-constraint>
<web-resource-collection>
<web-resource-name>User Section</web-resource-name>
<description>no description</description>
<url-pattern>/protected/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>no description</description>
<role-name>tomcat</role-name>
</auth-constraint>
<user-data-constraint>
<description>no description</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp?error=true</form-error-page>
</form-login-config>
</login-config>
when i try to access any files in the protected directory i am
redirected to
login.jsp, as expected. the IE location bar says
http://xxx.xxx.xxx.xxx/login.jsp
when i enter incorrect name/password i am redirected back to login.jsp
with querystring error=true. so the above configuration works.
But the IE location bar says http://xxx.xxx.xxx.xxx/j_security_check
is there a way to show the http://xxx.xxx.xxx.xxx/login.jsp?error=true
instead of http://xxx.xxx.xxx.xxx/j_security_check? this could be
confusing to users.
Any help is appreciated.
Rus