tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Long" <nl...@zethcon.com>
Subject Re: jsp redirect problem under IIS
Date Sat, 13 Oct 2001 00:43:20 GMT
BTW, I am running IIS 5.0 under Windows 2000 which is not supported in the
documentation. This may be the problem, but all the jsp's and servlet are
working correctly besides this redirect problem.

Noble
----- Original Message -----
From: "Noble Long" <nlong@zethcon.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, October 12, 2001 7:08 PM
Subject: jsp redirect problem under IIS


> I have a jsp page that is either redirecting to other pages or displaying
> output depending on the value of session variables(true in this case),
which
> by the way works fine under Tomcat (http://localhost:8080/). This is not
> working under IIS using Tomcat as a servlet container. Here is some of the
> jsp code -
>
> String sInbOrd = (String)session.getValue("InbOrd");
>   if(sInbOrd == null){
>     sInbOrd = "N";
>   }
>
>   if(!sInbOrd.equals("Y"))
>   {
>    response.sendRedirect("../noSecurity.jsp");
>   }
>  %>
>
>  Under IIS, it does not redirect to noSecurity.jsp instead it displays the
> page I'm redirecting from -
>
> HTTP/1.1 302 Found Server: Microsoft-IIS/5.0 Date: Fri, 12 Oct 2001
23:58:08
> GMT Content-Type: text/html Location:
> http://localhost/WebSynapse/noSecurity.jsp Content-Length: 175
> Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.1;
> Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
> Document moved
>
> This document has moved here.
>
> <Then the rest of the current page. Which should not be displayed since
> there was a redirection.>
> Any help would be appreciated.
>
> Thanks,
> Noble
>


Mime
View raw message