2 Replies Latest reply on Mar 10, 2003 5:31 PM by rossangelov

    Redirect problem in tomcat server

    rahuldk11

      Hello everybody

      I am using JBoss-2.4.3_Tomcat-3.2.3.
      I am using embedded tomcat.
      when i am using response.sendRedirect() or <jsp:forward>, the requested jsp is not showing. it is displaying blank page.
      But same thing works in weblogic.
      I want to know, if there are some specific settings in tomcat

      Regards
      Rahul

        • 1. Re: Redirect problem in tomcat server
          casanova

          I'm using the same setup. Can you please provide some more information - eg your directory structure for you webapp etc. Just use fake names if you don't want to give it all away.

          Paul.

          • 2. Re: Redirect problem in tomcat server
            rossangelov

            Paul,

            I'm having a similar problem.
            If I execute s servlet with a servlet name Test - http://localhost:5678/Test and I have response.sendRedirect("?page=value"); the server returns error 500 and the URL looks like this: http://localhost:5678/?page=value.

            If I manually add Test - http://localhost:5678/Test?page=value the page loads fine. One of the solutions was to add request.getRequestsURI() in sendRedirect. It worked but need to do that without changing the code, probably it is a configurations issue with Tomcat that I don't know how to resolve.

            The application works ok with iPlanet using Servlet Virtual Path Translation - mapping @.*html to Test. That is somting that I don't know how to do in Tomcat. I tried

            <servlet-mapping>
            <servlet-name>Test</servlet-name>
            <url-pattern>@.*html</url-pattern>
            </servlet-mapping>

            but it didn't work for me.

            Any help will be appreciated.

            Ross