tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Use of error page in Tomcat
Date Fri, 24 Sep 2010 17:14:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin,

On 9/23/2010 7:22 AM, Martin O'Shea wrote:
>                 <form action='<%= response.encodeURL("/myApp/loginPage") %>'
> method = "post">

I recommend a change to this:

<form action='<%= response.encodeURL(request.getContextPath() +
"/loginPage") %>'

This will allow your webapp to be re-deployed under a different name
without breaking.

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

iEYEARECAAYFAkyc3I8ACgkQ9CaO5/Lv0PBTRwCcDsckC3lnUQTNEXVwy/yWiyo+
5w4AoLtJ9rFX7XiGXgjjGa6frR65nM0N
=YcMC
-----END PGP SIGNATURE-----

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


Mime
View raw message