org.apache.struts.scripting
Class RequestToVariableFilter
java.lang.Object
org.apache.struts.scripting.RequestToVariableFilter
- All Implemented Interfaces:
- BSFManagerFilter
public class RequestToVariableFilter
- extends Object
- implements BSFManagerFilter
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.
Method Summary |
org.apache.bsf.BSFManager |
apply(org.apache.bsf.BSFManager mgr)
Applies the filter. |
void |
init(String name,
Properties props)
Initializes the filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestToVariableFilter
public RequestToVariableFilter()
init
public void init(String name,
Properties props)
- Initializes the filter.
- Specified by:
init
in interface BSFManagerFilter
- Parameters:
name
- The name of the filterprops
- The properties
apply
public org.apache.bsf.BSFManager apply(org.apache.bsf.BSFManager mgr)
- Applies the filter.
- Specified by:
apply
in interface BSFManagerFilter
- Parameters:
mgr
- The bsf manager
- Returns:
- The bsf manager
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.