The problem is to delete the information "www.mydomain.net" I entered, but I don't
know where.
Because I run this jsp from http://192.168.168.100/myapp/redirect.jsp, but
sendRedirect send the client to
http://www.mydomain.net/myapp/mypage.jsp. But I want it send the client to
http://192.168.168.100/myapp/mypage.jsp


=?iso-8859-1?Q?David_Mellado_Mart=EDn?= a �crit:

> Hi
> When you use response.sendRedirect("mypage.jsp"), the server send a redirect
> header  to the same domain that the jsp that calls the method. By example,
> if the jsp with the call is redirect.jsp,
> and you run this jsp from http://192.168.168.100/myapp/redirect.jsp, then
> sendRedirect would send the client to
> http://192.168.168.100/myapp/redirect.jsp
>
> One thing more, if what you want is to redirect a page in an application
> that is in a public domain and it�s in an intranet too,  to other page of
> the same application but always in the intranet , then you can use
> request.getRequestURI()  to discover the full path of the jsp with the call
> (it would return "/myapp/redirect.jsp"). After you can change this path to
> put the full path of the intranet, and use sendRedirect() whit it.
>
> Regards
>
> -----Mensaje original-----
> De: C�dric Favier <[EMAIL PROTECTED]>
> Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Fecha: viernes, 11 de enero de 2002 11:18
> Asunto: sendRedirect problem
>
> >Hi,
> >
> >When I want to use response.sendRedirect("mypage.jsp") Tomcat sends a
> >redirect response to the client like
> >"www.mydomain.net/myapp/mypage.jsp". The problem is that my application
> >works in intranet, so, I prefer Tomcat sends
> >"192.168.168.100/myapp/mypage.jsp". But I don't remember where I give
> >the domain information, to delete it. Or if there is a solution to
> >directly give the IP adress. Sorry for my english.
> >
> >Thanks for responses.
> >
> >--
> >C�dric Favier
> >_____________________________________________
> >Groupe Duverney
> >282, Avenue de Chambery
> >73230 Saint Alban Leysse
> >[EMAIL PROTECTED]
> >T�l  : 04 79 72 99 08    Fax : 04 79 72 99 20
> >_____________________________________________
> >
> >===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://archives.java.sun.com/jsp-interest.html
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > http://www.jguru.com/faq/index.jsp
> > http://www.jspinsider.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
C�dric Favier
_____________________________________________
Groupe Duverney
282, Avenue de Chambery
73230 Saint Alban Leysse
[EMAIL PROTECTED]
T�l  : 04 79 72 99 08    Fax : 04 79 72 99 20
_____________________________________________

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to