9.3.2 Defining servlet and JSP security role references
Define the Web application (servlets and JSP) security role references.
- Organization of this subsection
(1) Attribute files to be edited
Servlet attribute file
(2) Obtaining the attribute file to be edited and setting up attributes
-
Obtaining the attribute file
Execute the following command to obtain the servlet attribute file.
- Execute form
cjgetappprop [server name] [-nameserver provider URL] -name J2EE application name -type war -resname WAR display name/servlet and JSP display name -c servlet attribute file path
- Example
cjgetappprop MyServer -name adder -type war -resname adder/adder_sv -c C:\home\adder_war.xml
-
Setting up attributes
Execute the following command to reflect the WAR attribute file values.
- Execute form
cjsetappprop [server name] [-nameserver provider URL] -name J2EE application name -type war -resname WAR display name/servlet and JSP display name -c servlet attribute file path
- Example
cjsetappprop MyServer -name adder -type war -resname adder/adder_sv -c C:\home\adder_war.xml
(3) Attribute settings to be edited
The following table lists the Web application (servlets and JSP) security role reference (<security-role-ref>) settings.
|
Item |
Required |
Tag name |
|---|---|---|
|
Description |
O |
<description> |
|
Security role reference name |
R |
<role-name> |
|
Linked security role name# |
O |
<role-link> |
Legend:
R: Required, O: Optional
#: Specify a set role name. To learn more about setting role names, see 9.2.2 Setting roles.
For details about the property settings, see subsection 3.9.1 Specifications of the HITACHI Servlet Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.