> Ty van den Akker wrote:
>
> > The servlet I post to becooomes the new URL in my browser.  This is
> > logical, but it also means that the URL for my MainMenu is
> > /servlet/Login because the Login servlet handles the login.
> Aside from
> > URL redirection which provides a slow solution, or having
> my MainMenu
> > Servlet handle Login and each other Servlet be named ahead
> of itself,
> > how can I get my URL to match my actual displayed page?
> > Ty van den Akker
> > Software Engineering, ZServe Corporation
> > Creators of Great Online Communities
> > 801-375-8921, ext. 104
> > [EMAIL PROTECTED]
>
> Modern servlet engines let you map any path you want to a particular
> servlet, either by matching on the prefix of a URI path, or
> by matching
> on a file extension.  You are not stuck with "/servlet/xxxxx".
>
> Craig McClanahan

I think he is dealing with the issue that, when a servlet/jsp forwards to a
different JSP page, the URL seen in the user's browser does not reflect the
forwarded URL.  He doesn't want to use sendRedirect of course, since this is
slower than server-side forwarding.  I thought it might be possible to
change the URL seen by the browser by calling request.setHeader() to change
the Location or Content-Location header to that of the forwarded URL.
However, I tried this and it doesn't work for me.  So, I'm not sure what a
solution might be.
--
mark

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to