JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > FAQ > How can I see all request parameters passed into the action
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  How can I see all request parameters passed into the action
Added by scud, last edited by scud on May 19, 2006  (view change)
Labels: 
(None)

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

Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators