Worst come to worse, you can use java.net.HttpURLConnection to
communicate to the other servlet. This approach will still work
when you move your other servlet to another web server/servlet
engine. Beware of the overhead though. Take a look on how
URLConnection is used in either O'Reilly Networking book or
Hunter's servlet book.
Cheers,
Wendy
Susan Moffat wrote:
> Hi
>
> I'm trying to get my servlets to pass on HttpServletRequests to other
> servlets, the only solutionsI've found so far are:
> 1) to use the Servlet2.1 API getRequestDispatcher which requires the
> JavaWebServer 2 release which is only beta at the moment. We can't move to
> this as we need a officially released web server.
> 2) to use getServlet() which apparently isn't recommended by sun according
> to http://www.javaworld.com/javaworld/jw-12-1998/jw-12-servletapi.html, and
> I can't get to compile anyway.
>
> Has anyone managed to overcome the servlet intercommunication problems? Any
> other ideas or solutions would be appreciated.
>
> Thanks,
> --
> Susan Moffat
>
> Software Engineer
>
> ___________________________________________________________________________
> 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