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.
hope this helps,
- james
Hai-Bang Pham wrote:
>
> Hello,
>
> I know this question doesn't really belong in this group but ...
>
> 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: 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
===========================================================================
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