You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Fernández <af...@tid.es> on 2001/05/03 09:56:48 UTC

Re: Forwarding

forward() will only send it to another servlet or jsp, I think.

However, sendRedirect() will work with external URLs. Just do

response.sendRedirect("http://www.misMuelas.com");

Un saludo,

Alex.

Zsolt Koppany wrote:
> 
> Thank you for the idea, I know the jsp:forward command but I was not
> able to forward to a complete different URL for example
> "http://www.sun.com:8080". Do you know how to do that?
> 
> Zsolt
> 
> Barthélémy TEHAM wrote:
> >
> > by using jsp:forward Action
> >
> > exple: <jsp:forward page="dest.jsp" />
> >
> > Documentation source:
> > http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html#Section8.6
> >
> > --- Zsolt Koppany <zk...@intland.com> a écrit : > Hi,
> > >
> > > how can I forward to a page that the user does not see where he was
> > > forwarded to? The reason is, we might change the target host or page and
> > > if the user makes a bookmark to the forwarded page he cannot come back
> > > if we change the target host or the page.
> > >
> > > Zsolt
> > >
> > > --
> > > Zsolt Koppany
> > > Intland GmbH www.intland.com
> > > Schulze-Delitzsch-Strasse 16
> > > D-70565 Stuttgart
> > > Tel: +49-711-7871080 Fax: +49-711-7871017
> >
> > =====
> > Barthélémy TEHAM -
> > E-mail : teham@yahoo.fr
> > Website: http://teham.free.fr
> >
> > ___________________________________________________________
> > Do You Yahoo!? -- Pour faire vos courses sur le Net,
> > Yahoo! Shopping : http://fr.shopping.yahoo.com
> 
> --
> Zsolt Koppany
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Strasse 16
> D-70565 Stuttgart
> Tel: +49-711-7871080 Fax: +49-711-7871017