Sun Java System Web Server 7.0 Update 7 Developer's Guide

Embedding Servlets

Web Server supports the <servlet> tag. This tag enables you to embed servlet output in an .shtml file. No configuration changes are necessary to enable this behavior. If SSI and servlets are both enabled, the <servlet> tag is enabled.

The <servlet> tag syntax is slightly different from that of other SSI commands in that it resembles the <APPLET> tag syntax:


<servlet name=
         name code=
         code codebase=
         path iParam1=
         v1
          iParam2=
         v2>
<param name=
         param1 value=
         v3>
<param name=
         param2 value=
         v4>
.
.
</servlet>

      

If the servlet is part of a web application, the code parameter is required and other parameters are ignored. The code parameter must include: