Package org.apache.struts.scripting
Interface ScriptContextFilter
- All Known Implementing Classes:
RequestToVariableFilter
,TestFilter
public interface ScriptContextFilter
Defines a class that wants to manipulate the contents of the scripting
context before the script is executed. An example would be a class that puts
business facade classes in the context.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ScriptContext context) Applies the filter.void
init
(String name, Properties props) Initializes the filter.
-
Method Details
-
init
Initializes the filter. Properties can be retrieved as:struts-scripting.filters.FILTER_NAME.PROPERTY_NAME=PROPERTY_VALUE
where FILTER_NAME is the "name" parameter.- Parameters:
name
- The name of the filterprops
- The properties
-
apply
Applies the filter.- Parameters:
context
- The scripting context- Returns:
- The scripting context
-