blob: 3f2c669909c6d15e59ee1682a59ead025c2d6df7 [file] [log] [blame]
Vinay Vishal7c4c4fc2019-01-28 12:01:04 +05301type=page
2status=published
3title=unset-web-context-param
4next=unset-web-env-entry.html
5prev=unset.html
6~~~~~~
7unset-web-context-param
8=======================
9
10[[unset-web-context-param-1]][[GSRFM00248]][[unset-web-context-param]]
11
12unset-web-context-param
13-----------------------
14
15unsets a servlet context-initialization parameter of a deployed web
16application or module
17
18[[sthref2242]]
19
20Synopsis
21
22[source,oac_no_warn]
23----
24asadmin [asadmin-options] unset-web-context-param [--help]
25--name=context-param-name application-name[/module]
26----
27
28[[sthref2243]]
29
30Description
31
32The `unset-web-context-param` subcommand unsets a servlet
33context-initialization parameter of one of the following items:
34
35* A deployed web application
36* A web module in a deployed Java Platform, Enterprise Edition (Java EE)
37application
38
39When a parameter is unset, its value reverts to the value, if any, that
40is set in the application's deployment descriptor.
41
42The application must already be deployed. Otherwise, an error occurs.
43
44The parameter must have previously been set by using the
45`set-web-context-param` subcommand. Otherwise, an error occurs.
46
47
48[NOTE]
49=======================================================================
50
51Do not use the `unset-web-context-param` subcommand to change the value
52of a servlet context-initialization parameter that is set in an
53application's deployment descriptor. Instead, use the
54link:set-web-context-param.html#set-web-context-param-1[`set-web-context-param`(1)]
55subcommand for this purpose.
56
57=======================================================================
58
59
60This subcommand enables you to change the configuration of a deployed
61application without the need to modify the application's deployment
62descriptors and repackage and redeploy the application.
63
64This subcommand is supported in remote mode only.
65
66[[sthref2244]]
67
68Options
69
70asadmin-options::
71 Options for the `asadmin` utility. For information about these
72 options, see the link:asadmin.html#asadmin-1m[`asadmin`(1M)] help page.
73`--help`::
74`-?`::
75 Displays the help text for the subcommand.
76`--name`::
77 The name of the servlet context-initialization parameter that is to be
78 unset. This parameter must have previously been set by using the
79 `set-web-context-param` subcommand. Otherwise, an error occurs.
80
81[[sthref2245]]
82
83Operands
84
85application-name::
86 The name of the application. This name can be obtained from the
87 Administration Console or by using the
88 link:list-applications.html#list-applications-1[`list-applications`(1)]
89 subcommand. +
90 The application must already be deployed. Otherwise, an error occurs.
91module::
92 The relative path to the module within the application's enterprise
93 archive (EAR) file. The path to the module is specified in the
94 `module` element of the application's `application.xml` file. +
95 module is required only if the servlet context-initialization
96 parameter applies to a web module of a Java EE application. If
97 specified, module must follow application-name, separated by a slash
98 (/). +
99 For example, the `application.xml` file for the `myApp` application
100 might specify the following web module: +
101[source,oac_no_warn]
102----
103<module>
104 <web>
105 <web-uri>myWebModule.war</web-uri>
106 </web>
107</module>
108----
109::
110 The module would be specified as the operand of this command as
111 `myApp/myWebModule.war`.
112
113[[sthref2246]]
114
115Examples
116
117[[GSRFM783]][[sthref2247]]
118
119Example 1   Unsetting a Servlet Context-Initialization Parameter for a
120Web Application
121
122This example unsets the servlet context-initialization parameter
123`javax.faces.STATE_SAVING_METHOD` of the web application `basic-ezcomp`.
124The parameter reverts to the value, if any, that is defined in the
125application's deployment descriptor.
126
127[source,oac_no_warn]
128----
129asadmin> unset-web-context-param
130--name=javax.faces.STATE_SAVING_METHOD basic-ezcomp
131
132Command unset-web-context-param executed successfully.
133----
134
135[[sthref2248]]
136
137Exit Status
138
1390::
140 command executed successfully
1411::
142 error in executing the command
143
144[[sthref2249]]
145
146See Also
147
148link:asadmin.html#asadmin-1m[`asadmin`(1M)]
149
150link:list-applications.html#list-applications-1[`list-applications`(1)],
151link:list-web-context-param.html#list-web-context-param-1[`list-web-context-param`(1)],
152link:set-web-context-param.html#set-web-context-param-1[`set-web-context-param`(1)]
153
154