0 Replies Latest reply on Mar 20, 2003 1:49 PM by vinays

    colon in query string, breaks response.sendRedirect()

    vinays

      Hello,

      JBoss_3.0.6, with Tomcat_4.1.12 (windows 2000, solaris 7)
      I have a code in my jsp as follows:
      //code start

      response.sendRedirect(response.encodeRedirectURL("Test2.jsp?key1=x:y"));

      //code end

      When this is executed, i get a 404 error which say test2.jsp not present. Note that Test2.jsp is somehow getting replaced with test2.jsp (this works fine in weblogic 6.1 sp3)
      This error goes away if i remove the ":" from the querystring. Or other option is if i use the following code.
      //code start

      response.sendRedirect(response.encodeRedirectURL("Test2.jsp?key1="+URLEncoder.encode("x:y")));

      //code end


      Is this the only solution or does JBoss have any patch to overcome this?