tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amrhein, Thomas" <>
Subject AW: redirect problems?
Date Mon, 30 Oct 2000 08:20:04 GMT
Do you make a return after the sendRedirect?

Otherwise, the output of checkout2.jsp is added (and not a 'new' output).

Hint: Call sendRedirect before you make any output!!!

-----Urspr√ľngliche Nachricht-----
Von: jim []
Gesendet am: Freitag, 27. Oktober 2000 18:41
Betreff: redirect problems?

We are using Apache 1.3.12 with Tomcat 3.1 and experiencing weird problems.

1. checkout.jsp (FORM collecting new user info)
   - POSTs to checkout_eng1.jsp

2. checkout_eng1.jsp
     - adds user from #1 and does a response.sendRedirect("/checkout2.jsp");

3. checkout2.jsp shows the next FORM asking for mailing address information

Weird Symptom #1
On any version of Internet Explorer (never on netscape) the POST to step #2
above fails and up comes this IE error "cannot find server or DNS error"
leads me to beleive that the response.sendredirect() is doing something odd,
maybe not sending back the correct http location header or something

If you immediatly hit the browsers back button and re-submit the form, it
works with no problem and as expected. This only seems to occur the first
submitting forms to a page that re-directs after an operation.

Weird Symptom #2
occasionally on Internet Explorer AND Netscape.
User submits info from form #1 above (checkout.jsp), their information is
to the database and they are redirected to checkout2.jsp, HOWEVER what is
on checkout2.jsp is BOTH the previous pages contents (checkout.jsp) AND the
expected contents of checkout2.jsp with a visible HTTP response header
out in between checkout.jsp's contents and checkout2.jsp's contents ALL on
visible on the URL checkout2.jsp................

Anyone have any ideas? I tried checking the bug database but it appears to

View raw message