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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ScriptContext context) Applies the filter.voidinit(String name, Properties props) Initializes the filter.
-
Constructor Details
-
RequestToVariableFilter
public RequestToVariableFilter()
-
-
Method Details
-
init
Initializes the filter.- Specified by:
initin interfaceScriptContextFilter- Parameters:
name- The name of the filterprops- The properties
-
apply
Applies the filter.- Specified by:
applyin interfaceScriptContextFilter- Parameters:
context- The scripting context- Returns:
- The scripting context
-