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 Details

    • init

      void init(String name, Properties props)
      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 filter
      props - The properties
    • apply

      ScriptContext apply(ScriptContext context)
      Applies the filter.
      Parameters:
      context - The scripting context
      Returns:
      The scripting context