The <Servlet> Shtml Tag - Netscape ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual

Guide to servlets
Table of Contents

Advertisement

The <SERVLET> SHTML Tag
Enterprise Server 6.1 supports the
Server. This tag allows 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
The
<SERVLET>
resembles the
<servlet name=
<param name=
<param name=
.
.
</servlet>
If the servlet is part of a web application, the
parameters are ignored. The
The value of the
application. For more information about
specification:
http://java.sun.com/products/servlet/index.html
The value of the
application. For more information about
Applications."
For example, if you wanted to include the following in your SHTML file:
<servlet name=pparams code="/PrintApp/PrintParams">
</servlet>
you would need to include the following in your
<web-app uri="/PrintApp"
dir="/nes60/https-server.netscape.com/example.com/webapps/PrintApp"
/>
<SERVLET>
tag is enabled.
<SERVLET>
tag syntax is slightly different from that of other SSI commands; it
tag syntax:
<APPLET>
name
code
code=
param1
v3
value=
>
param2
v4
value=
>
parameter must include:
code
element defined in the
url-pattern
attribute defined in the
uri
tag as introduced by Java Web
path iParam1
codebase=
parameter is required and other
code
, see the Servlet 2.2 API
web.xml
web-apps.xml
web-apps.xml
web-apps.xml
The <SERVLET> SHTML Tag
v1 iParam2
v2
=
=
>
file for the web
web.xml
file for the web
, see Chapter 2, "Web
file:
Chapter 3
Using Servlets
35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents