Re: forward request to URL outside current context

Milt Epstein <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
On Fri, 30 May 2003, Devang Shah wrote:

> I think forward() forwards request to the specified resource on the
> current server only. However you can use
> HttpServletResponse.redirect to redirect response to another
> server. You can also post to another URL from within HTML/JSP page.

Just to clarify, the question stated "outside the current *context*"
[emphasis added], not "outside the current server".  I believe someone
posted an solution using RequestDispatcher -- I'm not 100% sure that
will work, but I think it will.  Certainly easy to try.


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[email protected]]On Behalf Of John
> C Cartwright
> Sent: Friday, May 30, 2003 1:48 PM
> To: [email protected]
> Subject: [SERVLET-INTEREST] forward request to URL outside current
> context
>
>
> Hello All,
>
> is there a way that I can use the
> RequestDispatcher.forward(request,response) method to forward a request
> to an URL outside the current context?
>
> Thanks!
>
> -- john
>
> =====================================================
> John Cartwright
> Associate Scientist
> Geospatial Data Services Group
> CIRES, National Geophysical Data Center/NOAA
> (303) 497-6284
> [email protected]
> =====================================================
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[email protected]

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.