Package org.apache.struts.scripting
Class RequestToVariableFilter
java.lang.Object
org.apache.struts.scripting.RequestToVariableFilter
- All Implemented Interfaces:
ScriptContextFilter
Takes request parameters and declares variables with them. If a variable is
already exists with that name, a "_" is prepended to the name. Both Strings
and arrays are recognized.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ScriptContext context) Applies the filter.void
init
(String name, Properties props) Initializes the filter.
-
Constructor Details
-
RequestToVariableFilter
public RequestToVariableFilter()
-
-
Method Details
-
init
Initializes the filter.- Specified by:
init
in interfaceScriptContextFilter
- Parameters:
name
- The name of the filterprops
- The properties
-
apply
Applies the filter.- Specified by:
apply
in interfaceScriptContextFilter
- Parameters:
context
- The scripting context- Returns:
- The scripting context
-