THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Ensure that
servlet-config
Interceptor is included in the Action's stack.- The default stack already includes
servlet-config
.
- The default stack already includes
- Edit the Action so that it implements the ParameterAware interface.
- The ParameterAware interface expects a
setParameters
method. You may wish to include a companiongetParameters
method.
- The ParameterAware interface expects a
- At runtime, call
getParameters
to obtain a Map representing the request parameters.
...
Info |
---|
When the |
Tip |
---|
To unit test a ParameterAware Action, create your own Map with the pertinent request parameters and call |
@see action-default.xml
@see com.opensymphony.webwork.interceptor.ParameterAware
@see com.opensymphony.webwork.interceptor.Servlet Config Interceptor