You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shanta B <B....@siemens.com> on 2003/04/24 12:23:26 UTC

servlet problem

Hi All
          I have solved my servlet redirect problem by this line of code 

	   String
redirectURL=req.getScheme()+"://"+req.getServerName()+req.getContextPath());
           String shref = s.attachSessidToUrl("Download?contentType="
                               + contentType+"&fileName="+fileName);
           rsp.sendRedirect(redirectURL+"/"+shref);

before this i used   rsp.sendRedirect(shref),this one is working at our
place,but its not worked at our client,but if i type this download servlet
url in browser it doing its work fine.

Here my question is that ,why Download servlet is not identified with
absolute path( i also tried rsp.sendRedirect("/"+shref) ,this also fails).If
redirect is done by browser(making http headers) why not it identify the
absolute path of servlet.

We are using servlet2.3 and tomcat4.1.18 servlet container.I would like to
know that is there any configuration in apache to restrict servletRedirect
or it is tomcat bug???.


Thanks in advance
shanta.B

            

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org