Sylvain Roche wrote:
> Hello
>
> I want to hide the dispatcher servlet name in the browser's location bar. It
> would be great to only show the jsp name, without the query string, for
> example
>
> I'm afraid that it is directly handled by the browser (but there might be
> another way), so I tried to do that with javascript, without any success.
> The HttpServletResponse doesn't hava any method that could help.
>
It is handled directly by the browser. What shows is the URL to which the
*request* was sent -- it does not come from the response. The browser has no idea
that your dispatcher servlet forwarded the request somewhere else.
>
> How do you guys who use response redirection do ? Do you show the dispatcher
> url (which btw should be the best idea for bookmarking, but not really for
> presentation) ?
>
What I normally do is to run inside a custom window that has no location bar, or I
use frames, even if I don't otherwise need them (in that case, the app runs in one
very large frame, and there's a small hidden frame that isn't used). That way, the
URL of the app itself (i.e. the page containing the frameset) is the only thing
that shows in the location bar.
Beyond that, it's appropriate to educate users that web *applications* are not the
same as web *sites* -- so concepts like bookmarking and returning to a particular
page within the app are not really useful.
>
> Any idea would be greatly appreciated
>
> Sylvain
>
Craig McClanahan
===========================================================================
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