Actually that's not entirely true. Just have the first JSP redirect to the
second one, rather than using forward. I'd do this by writing a simple
Servlet with one method that only does this one call. So you inherit the JSP
from the servlet and call de servlet's method from the JSP. The redirect
makes it look to the webserver as if the client requested the URL. So the
new URL displayed in the browser address thingy will be the URL of the
second JSP.


Rob

> -----Original Message-----
> From: Scott Evans [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 14, 2000 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: forward and the URL
>
>
> Actually, its impossible. In any case, the location bar will
> display the url
> that was requested by the client.
>
> Scott Evans
>
>                 -----Original Message-----
>                 From:   Angus Mezick [mailto:[EMAIL PROTECTED]]
>                 Sent:   Wednesday, June 14, 2000 4:23 PM
>                 To:     [EMAIL PROTECTED]
>                 Subject:        jsp:forward and the URL
>
>                 Does anyone know how to use <jsp:forward> and
> have it change
> the Location:
>                 window in netscape to the page you forwared
> to.  Say I have
> HelloWorld.jsp
>                 contain the line <jsp:forward page =
> "SimpleDbLogin.jsp"/>.
> I want the URL
>                 in the bowser to read SimpleDbLogin.jsp, not
> HelloWorld.jsp.
>
>                 --Angus
>
>                 P.S.  Anyone know how to contact the admins
> for this list?
>
>
> ==============================================================
> =============
>                 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

===========================================================================
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