tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dario Novakovic" <da...@inecco.net>
Subject Re: redirect to a static page from tomcat to apache
Date Tue, 02 Jan 2001 16:06:06 GMT
why does it say in api docs that sendRedirect() "Sends a temporary redirect
response"? what is temporary in this case?



----- Original Message -----
From: "Boaz Shaham" <Boazs@farechase.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, 02 January, 2001 08:53
Subject: RE: redirect to a static page from tomcat to apache


> how about
>
> // response is HttpServletResponse
> response.sendRedirect("/foo/x.html");
>
>
>
> -----Original Message-----
> From: Randy Paries [mailto:randy.paries@unitnet.com]
> Sent: Tuesday, January 02, 2001 02:25
> To: tomcat-user@jakarta.apache.org
> Subject: redirect to a static page from tomcat to apache
>
>
> Hello,
>
> Is there anyway to do a forward from a servlet in tomcat to a static page
> that apache only knows.
> ie.
> apache knows that /foo is /home/foo.
>
> but when the servlet executes and does the following(see snippet below),
> Tomcat does not know where /foo is mapped to. If I set up a context in
> server.xml it will work. But then for my app it gets more complicated ,
> because x.html is a frame that calls two cgi programs. And of course
tomcat
> doesn't know about these guys.
>
> So what are my options?
>
> IS there way to set up a cgi-bin directory under tomcat?
>
> Thanks
>
> >From within a servlet.
> ---------------------------------------------------------------------
> String URL = "/foo/x.html";
> RequestDispatcher disp =
> getServletConfig().getServletContext().getRequestDispatcher(jspURL);
> disp.forward(req,res);
> ---------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>



Mime
View raw message