Hans Bergsten wrote:

> Craig, your answers to this and other list are always to the point and very
> helpful, but here I believe you're a bit misleading. As far as I know there's
> no way to write a stand-alone servlet that handles the <servlet> style include.
>

You're right of course ... I was thinking of the NCSA-style includes like this:

    <!--#include file="filename" -->

or

    <!--#include virtual="path" -->

which you can do with generic servlets like Apache JSSI, rather than the <servlet> tag
which you can't support without "inside knowledge" of the servlet engine.

For including the output of other servlets, I've been using RequestDispatcher.include()
and the JSP equivalent <jsp:include>., and accessing the servlet or JSP page by URI
path rather than by name.  The parameters you specify do end up in a request attribute,
so you can parse them and use them to vary the behavior of the included servlet -- but
it does need to know that it's been accessed this way.  JSWDK does have the ability to
do this kind of request-time including, as well as the compile-time including that was
described earlier, with no additional software required.

Craig

___________________________________________________________________________
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