Paul Szynol wrote:
> hi, all,
>
> does anyone know if it is possible to invoke a servlet that will append,
> rather than replace, the current output of the page?
>
> thanks,
> paul
>
One way to do this would be to have your servlet use
RequestDispatcher.include() to get the contents of the page you want to add on
to, and then write the stuff you want to append. This requires the generator
of the original part to be an "active" resource (i.e. a servlet or JSP page).
If the base part of the page is static, another way would be to use the
"server side include" capability of your web server -- just use an include
path that points at your servlet, and the web server will add its output at
that point in the page.
In either scenario, you can append text by putting the include stuff at the
bottom, or you can embed the include in the middle, at the top, or anywhere
else you need it.
Craig McClanahan
___________________________________________________________________________
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