Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Bedienungsanleitung Seite 33

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 32
The <SERVLET> SHTML Tag
Chapter 3 Using Servlets 33
The <SERVLET> SHTML Tag
iPlanet Web Server 6.0 supports the <SERVLET> tag as introduced by Java Web
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
<SERVLET> tag is enabled.
The
<SERVLET> tag syntax is slightly different from that of other SSI commands; it
resembles the
<APPLET> tag syntax:
If the servlet is part of a web application, the
code parameter is required and other
parameters are ignored. The
code parameter must include:
The value of the
url-pattern element defined in the web.xml file for the web
application. For more information about
web.xml, see the Servlet 2.2 API
specification:
http://java.sun.com/products/servlet/index.html
The value of the uri attribute defined in the web-apps.xml file for the web
application. For more information about
web-apps.xml, see Chapter 2, “Web
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-apps.xml file:
<web-app uri="/PrintApp"
dir="/iws60/https-server.iplanet.com/acme.com/webapps/PrintApp"/>
<servlet name=
name code=code codebase=path iParam1=v1 iParam2=v2>
<param name=
param1 value=v3>
<param name=
param2 value=v4>
.
.
</servlet>
Seitenansicht 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare