W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Server-Side-Include Servlets

From: Brian Dupras <bdupras@bigfoot.com>
Date: Fri, 19 Feb 1999 13:36:30 -0500 (EST)
Message-ID: <000001be5c36$8bd47aa0$d146b5d1@dnvr.uswest.net>
To: <www-jigsaw@w3.org>
I've been tring to get SSI Servlets to work with no progress.  Can someone
help me out.

I've got two servlets - one that inherits from HttpServlet and one that
inherits from GenericServlet.  I've responded to doGet() and service().
Neither works.  They're installed int he standard www/servlets directory.

I've tried placing all sorts of code in the .shtml file:

<TITLE>Try Server Side Include</TITLE>
Trying Server Side Include SimpleHelloServlet:<BR><BR>

<!--#servlet name="SimpleHelloServlet"-->
<!--#servlet name="SimpleHelloServlet"
<!--#servlet name="SimpleHelloServlet" code="servlets.SimpleHelloServlet"-->
<!--#servlet name="SimpleHelloServlet" code="SimpleHelloServlet"-->

Trying Servlet tag
<servlet name="SimpleHelloServlet"
<servlet name="servlets.HelloWorldSSI"></servlet>
<servlet name="/servlets/HelloWorldSSI"></servlet>
<servlet name="servlets/HelloWorldSSI"></servlet>


Some of these do nothing, some of them give me an error and a half on an
HTML page.  Ergh...  SimpleHelloServlet simply needs to output a HTML

For a SSI servlet that needs to output an HTML fragment, do I inherit from
HttpServlet or GenericServlet?

Do I impliement service(), doGet(), or otherwise?

What's the standard method for including SSI servlets, <Servlet> or
<!--#servlet ...-->?

Received on Friday, 19 February 1999 19:13:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:33 UTC