-----Original Message-----
From: Patrik Andersson [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2001 09:08
To: Orion-Interest
Subject: SV: response.sendRedirect problemDon't write a full URL In the sendRedirect(param) call. Use an URI instead. Do:
response.sendRedirect("/some/place/file.html");
instead of:
response.sendRedirect("http://host.domain:port/some/place/file.html");
-----Ursprungligt meddelande-----
Från: Rafael Alvarez [mailto:[EMAIL PROTECTED]]
Skickat: den 14 juni 2001 00:44
Till: Orion-Interest
Ämne: response.sendRedirect problem
Hi all,
this is the scenary: I have a 2 jsp pages and 2 servlet. The flow is:
pag1.jsp -->(via Post)-->
-->servlet1 -->(via forward) -->
-->servlet2 -->(via response.sendRedirect) -->
--> pag2.jspwhen viewed using some browsers in Mac (IE and Netscape alike), the
redirect sends the url
http://hostname/servlet/servlet2/http//hostname/servlet/servlet2and I got a 400 Bad Request Error, no matter which url I use in the
response.sendRedirect (as I recall, my last was "foobar/whatever")
On windows and unix browsers works fine.
Any ideas?
--
Best regards,
Rafael mailto:[EMAIL PROTECTED]
___________________________________________________________________
This communication contains information which is confidential and
may also be privileged. It is for the exclusive use of the intended
recipient. If you are not the intended recipient, please note that
any form of distribution, copying or use of this communication or
the information in it is strictly prohibited. If you have received
this communication in error, please return it with the title
"received in error" to [EMAIL PROTECTED] then delete the
email and destroy any copies of it. Please contact our Helpdesk on
01628765555 if you need assistance. Thank you for your cooperation.
___________________________________________________________________