You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Method A:
ActionContext.getContext().getParameters() (returns Map, works internally using a ThreadLocal)

Method B:
Have the action implements ParameterAware interface and the parameters will be set through the setParameters(Map) method. This requires that the 'servlet-config' interceptor being added to that particular action.

@see webwork-default.xml
@see com.opensymphony.webwork.interceptor.ParameterAware
@see com.opensymphony.webwork.interceptor.Servlet Config Interceptor

  • No labels