org.apache.struts2.interceptor
Interface ParameterAware


public interface ParameterAware

This interface gives actions an alternative way of receiving input parameters. The map will contain all input parameters as name/value entries. Actions that need this should simply implement it.

One common use for this is to have the action propagate parameters to internally instantiated data objects.

Note that all parameter values for a given name will be returned, so the type of the objects in the map is java.lang.String[].


Method Summary
 void setParameters(Map parameters)
          Sets the map of input parameters in the implementing class.
 

Method Detail

setParameters

void setParameters(Map parameters)
Sets the map of input parameters in the implementing class.

Parameters:
parameters - a Map of parameters (name/value Strings).


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.