Craig R. McClanahan wrote:
>[snip]
>To post-process dynamic output (servlets, JSP pages, CGI scripts, etc.) you
can
>always use a URLConnection from within your servlet.  Whether there's a
>significant performance hit for this or not depends on the underling
>URLStreamHandler that is used -- it is entirely reasonable for a servlet
engine
>to include a specialized stream handler that has "insider knowlege" of the
>servlet engine, so it can access servlets directly instead of through a
TCP/IP
>connection.

Good idea! Has any servlet engine implemented such a beast? Perhaps we could
add a ServletURLConnection / servlet: URL handler to the servlet API?

Still, it does sound a lot harder for the servlet team than just adding a
method ala "char [] Response.getBuffer()", which was my original idea.

I am actually currently using HttpURLConnection, but it's very painful as
the sun.net.www.protocol.http classes have more bugs than a swamp...
although I'm told the whole area has been rewritten in JDK1.3...

Cheers

Geoff

___________________________________________________________________________
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