tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: HTTP Error 302
Date Mon, 24 Nov 2003 13:50:58 GMT

It's your responsibility to handle these redirects ;)  After all, it's your generating them.
 Maybe add an extra parameter to requests coming from the web application so that your ImageGenerator
knows it doesn't need to authenticate?  Or make the web application authenticate before it
calls the ImageGenerator?

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Günter Kukies []
>Sent: Monday, November 24, 2003 2:18 AM
>To: Tomcat Users List
>Subject: Re: HTTP Error 302
>after investigating the Problem, we found that we generate a redirect to
>login when
>the session is invalid. We have a servlet, that generates Images. If the
>client requests the Image servlet directly everything is fine. The session
>is valid and the user gets his image. But when the client want's to
>a PDF with FOP on the same webapplication where the Imigegeneratorservlet
>is, we dont't get a valid session. The request to the Imagegenerator is
>comming now from the webapplication and not from the client. So there is no
>session and we generate a redirect to login. I monitored the datatranfere
>with tcpdump on the loopback device and there I saw the HTTP 302.
>What is the best way to handle this kind of session problems.
>Thanks for answeres
>----- Original Message -----
>From: "Christopher Schultz" <>
>To: "Tomcat Users List" <>
>Sent: Friday, November 21, 2003 2:47 PM
>Subject: Re: HTTP Error 302
>> Günter,
>> > what are the common reasons, that tomcat 4.1 is returning a HTTP 302
>error page?
>> Response code 302 is not an error: it is a redirect. Are you connecting
>> to Tomcat via a browser or some other client?
>> Your client should be "following" that redirect, which should be
>> specified in the "Location" header of the response.
>> For more information, check out the HTTP spec at:
>> 1.0 Spec:
>> 1.1 Spec:
>> -chris
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message