Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

Update nomenclature and formatting

...

Code Block
Map parameters = ActionContext.getContext().getParameters();

Implement ParameterAware

(star) Preferred

  • Ensure that servlet-config Interceptor is included in the Action's stack.
    • (info) The default stack already includes servlet-config.
  • Edit the Action so that it implements the ParameterAware interface.
    • The ParameterAware interface expects a setParameters method. You may wish to include a companion getParameters method.
  • At runtime, call getParameters to obtain a Map representing the request parameters.

...

@see action-default.xml
@see comorg.apache.opensymphonystruts.webworkaction2.interceptor.ParameterAware
@see comorg.apache.opensymphonystruts.webworkaction2.interceptor.Servlet Config Interceptor