uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

9.8 Defining servlet and JSP mapping

You define the mapping of servlets and JSPs.

Organization of this section
(1) Attribute file to be edited
(2) Acquiring the attribute file to be edited and setting the attributes
(3) Attribute settings to be edited

(1) Attribute file to be edited

Servlet attribute file

(2) Acquiring the attribute file to be edited and setting the attributes

Acquiring the attribute file

Execute the following command to acquire a servlet attribute file:

Execution format
 
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name/servlet-and-JSP-display-name -c path-of-the-servlet-attribute-file
 

Example of execution
cjgetappprop MyServer -name adder -type war -resname adder/adder_sv -c C:\home\adder_war.xml
 
Setting the attributes

Execute the following command to apply the values of the servlet attribute file:

Execution format
 
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name/servlet-and-JSP-display-name -c path-of-the-servlet-attribute-file
 

Example of execution
cjsetappprop MyServer -name adder -type war -resname adder/adder_sv -c C:\home\adder_war.xml
 

(3) Attribute settings to be edited

Item Mandatory Corresponding tag
URL pattern Y <url-pattern>

Legend:
Y: Mandatory

For details on the property settings, see 3.9.1 Contents of the servlet property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.