uCosminexus Application Server, Application Setup Guide
After adding the filter, you define the filter mapping.
WAR attribute file
Execute the following command to acquire a WAR attribute file:
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file |
cjgetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
Execute the following command to apply the values of the WAR attribute file:
cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file |
cjsetappprop MyServer -name adder -type war -resname adder_war -c C:\home\adder_war.xml
The following table describes the property settings of the filter mapping definition (<filter-mapping>) of Web application (servlets and JSPs):
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Filter name | Y | <filter-name> |
| URL pattern | Y#2 | <url-pattern> |
| Servlet name | Y#2 | <servlet-name> |
| Filter application condition#1 | O | <dispatcher> |
For details on the property settings, see 3.7.1 Contents of the WAR property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.