-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konstantin,

On 2/14/2010 8:53 AM, Konstantin Kolinko wrote:
> Try this instead:
> 
>  <form name="login" method="post" action="AuthLogin">
> 
> or this
>  <form name="login" method="post" action="./AuthLogin">

Even better:

<form name="login" method="post" action="<%=
response.encodeURL(request.getContextPath() " +"/AuthLogin")%>">

This will encode the URL with the session id if necessary, and pre-pend
any context path necessary.

As pointed our by another poster, the use of a tag library such as
JSTL's <c:url> takes care of this for you, and always uses
context-relative URLs (just as the above code would do).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt5kQ0ACgkQ9CaO5/Lv0PDs5gCfbQvX7JSjX2FdkquQjUYqyApt
EZQAnjgHll4T6kCUX0u3aDafbGUuCSoF
=3lsS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to