The path you provide to response.sendRedirect should be run through
response.encodeRedirectURL first. This may help solve the problem because it
will generate an absolute, fully qualified URL.
John H.
Rafael Alvarez <[EMAIL PROTECTED]>@orionserver.com on 06/13/2001 05:43:35 PM
Please respond to Orion-Interest <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
To: Orion-Interest <[EMAIL PROTECTED]>
cc:
Subject: 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.jsp
when viewed using some browsers in Mac (IE and Netscape alike), the
redirect sends the url
http://hostname/servlet/servlet2/http//hostname/servlet/servlet2
and 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]