[following is my reply to the same query on [EMAIL PROTECTED]]

hi hai -

        you might want to check out the <jsp:forward> tag
        or the underlying RequestDispatcher.forward() method.

        if your using jswdk for development, another consideration
        is to specify an http url as a docBase. with such a
        configuration the initial server will effectively act
        as a "proxy" or pass-through server for the real site.
        with this approach, i believe the resolved document may
        contain url's relative to the destination server vs the
        initial "public/portal" server although i haven't had
        a chance to experiment with this config as of yet.

        i'm curious as to the outcome of the later.

        hope this helps,

- james


Hai-Bang Pham wrote:
>
> Hello,
>
> I was wondering if there is a way to hide the URL when trying to do
> a HTTP redirect.  I've experimented with the response.sendRedirect()
> method but the redirected URL is always shown.
>
> This occurs if the redirect was to an HTML file i.e.
> response.sendRedirect("http://server:port/index.html") or if the
> redirect was to a servlet i.e.
> response.sendRedirect("HelloWorldServlet")
>
> What I basically want to accomplish with this is to develop a
> "portal" servlet where all client requests will be handled.
> In this situation, only one URL will be shown in the client
> browser (on the browser address bar and for all form submit actions).
>
> -Hai
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to