Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual do Utilizador Página 85

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 84
Configuring Servlets in the Default Virtual Server
Chapter 8 Legacy Servlet and JSP Configuration 85
In the Legacy Servlets>Configure Servlet Attributes page in the interface, do
the following:
In the Servlet Name field, enter an identifier for the servlet, such as plan1A.
(Notice that this is not necessarily the same as the class file name).
In the Servlet Code field, enter the name of the class file, which is
planP2Version1A. Don’t specify any directories. The .class extension is
not required.
In the Servlet Classpath field, enter the absolute path name for the
directory, jar or zip file where the servlet class file resides, or enter a URL
for a directory. In this example, you would enter
server_root
/docs/servlet/plans/releaseA. (For example:
D:/netscape/server4/docs/servlet/plans/releaseA.)
In the Servlet Args field, enter the additional arguments that the servlet
needs, if any. (This example does not use extra arguments.)
Save the changes.
To make this change programmatically, add the following lines to the
configuration file
servlets.properties:
2. Specify the virtual path for the servlet.
In the Legacy Servlets>Configure Servlet Virtual Path Translations page, do
the following:
In the Virtual Path field, enter the virtual path name. Note that the server
name is implied as a prefix, so in this case you would only need to enter
/plans/plan1 to specify the virtual path
http://poppy.mcom.com/plans/plan1.
In the Servlet field, enter the identifier for the servlet that is invoked by this
virtual path. This is the servlet identifier that you specified in the
Configure Servlet Attributes page, which in this case is
plan1A.
Save the changes.
To do this programmatically, add the following line to
rules.properties:
servlet.plan1A.classpath=D:/Netscape/server4/docs/servlet/pla
ns/releaseA/
servlet.plan1A.code=planP2Version1A
Vista de página 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 123 124

Comentários a estes Manuais

Sem comentários