You can't create an HttpServletRequest or Response directly, but you can
certainly use
the java.net.URL and java.net.URLConnection classes to open a connection to
a URL,
submit data, and receive a response.  The URL in question can be local or
external - it
makes no difference.

The returned data can be read from the URLConnection and used in generating
the HttpResponse.
from your servlet.

-AMT

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Holmes III, William S
> Sent: Wednesday, April 05, 2000 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: Model 2 Question
>
>
> Hi,
>
> Is it possible to have an action class
>  - construct a new HttpServletRequest
>  - send it to another site (possibly external)
>  - process the resulting HttpServletResponce (parsing it and
> storing values
> into a bean)
>  - then load attributes onto it's own HttpServletResponce to forward to a
> JSP
>
> It sounds like a lot of overhead, but does anyone have any suggestions?
>
> Thanks,
>   Bill
>
> ==================================================================
> =========
> 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
>

===========================================================================
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

Reply via email to