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.
>
There is nothing the server can do, because the "location" window shows the URL
that the *client* send the request to. The client has no idea what happens on the
server side.
>
> 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) ?
>
> Any idea would be greatly appreciated
>
I do this, in order:
(1) Design my UI with enough navigation controls that the user does not need to be
tempted into using the location window (or back/forward etc.).
(2) Teach users that the location shown is absolutely and totally irrelevant in a
web application (as opposed to a web site).
(3) Use a framed presentation (even if not needed for anything else). Only the URL
of the frameset page will show.
(4) Use JavaScript to open a window with no location window, so that there are no
distractions.
>
> 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