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

Brad,

On 2/16/2009 8:55 PM, Brad Whitaker wrote:
> Is there a valid reason why this might occur, or is this likley a
> bug in Tomcat?

A bug is unlikely. I would guess that 100% of webapps out there use
redirects and they work perfectly fine.

> My code has thrown an exception prior to invoking the redirect but I can't
> find anything in the Servlet spec that would indicate this is a problem.

Er... if your code throws an exception then the sendRedirect call will
never occur because your method is done executing. Can you post some code?

> The
> HttpServletResponse.sendRedirect() is within a try/catch block and no
> exception is being thrown in response to sendRedirect().

The exception is probably happening before the sendRedirect. Are you
swallowing any exceptions (that is, catching them and ignoring them)?

> I
> have verified that sendRedirect() is being executed and not throwing an
> exception.

How have you verified that the sendRedirect is being executed?

> This same code is working as desired when executed on Jetty (i.e.
> the desired redirect is received by the browser) but when executed in Tomcat
> I see the default Tomcat error page displayed rather than the redirect.

Everything else is the same? All the libraries are at the same patch
level, etc.?

Are you seeing any errors in your Tomcat log files?

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

iEYEARECAAYFAkmcXX0ACgkQ9CaO5/Lv0PA4lQCbBogI29p8tS7vSsRRgfasrJVn
LAYAn09+8k1ydcCT7nU0mNOwIVRQUiF7
=Sa/K
-----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