With a response.sendRedirect and a URL absolute,
<%
        response.sendRedirect("http://localhost/folder1/Page2.jsp");
%>



mundiv�a
Departamento de Programaci�n.
Jes�s Angel Fern�ndez D�ez de Ter�n
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Tfno.: 606044507


> -----Mensaje original-----
> De: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]En nombre de Tamanna Kher
> Enviado el: jueves 8 de junio de 2000 16:17
> Para: [EMAIL PROTECTED]
> Asunto: Problem in jsp:forward.......URGENT
>
>
> Can somebody please suggest a solution for the following scenario:
>
> 1. Client browser requests for a page Page1.jsp from Web server as
> http://localhost/folder1/Page1.jsp
>
> 2. Page1.jsp is in turn doing a forward to Page2.jsp lying in adifferent
> folder as :
>      <jsp:forward page="../folder2/page2.jsp"/>
> 3. The output from Page2.jsp gets sent to the browser.
> 4. However, the location URL of  browser still shows the old location as :
> http://localhost/folder1/Page1.jsp
>    whereas the page that is currently loaded in browser is Page2.jsp from
> folder2.
>
> How do we make  the location URL  to point to the same place as the
> destination page (in this case, Page2.jsp)
> whenever a request forward is done internally ?
>
> ThankX in advance
> -Tamanna Kher
>
>
>
>
> _____________________________________________________________
>
> Visit http://www.PalmGreetings.com The first & only Mobile greeting site.
> * You can send & receive e-cards using your Palm Pilot
> * View animated cards on your Palm
> * Draw your very own cards
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to