...
Since we included struts-default.xml
in our stritsstruts.xml
, all the predefined interceptors and stacks are available for us to use in our actions.
timer | clocks how long the action (including nested interceptors and view) takes to execute |
logger | logs the action being executed |
chain | makes the previous action's properties available to the current action. Used to make action chaining (reference: Result Types) |
static-params | sets the parameters defined in |
params | sets the request (POST and GET) parameters onto the action class. We have seen an example of this in TODO |
model-driven | if the action implements |
component | enables and makes registered components available to the actions. (reference: IoC & Components) |
token | checks for valid token presence in action, prevents duplicate form submission |
token-session | same as above, but storing the submitted data in session when handed an invalid token; |
validation | performs validation using the validators defined in { |
workflow | calls the validate method in your action class. If action errors created then it returns the |
servlet-config | give access to |
prepare | allows you to programmatic access to your Action class before the parameters are set on it. |
conversionError | Adds field errors if any type-conversion errors occurred\ |
execAndWait | Spawns a separate thread to execute the action |
fileUpload | Sets uploaded files as action files (File objects) |
In addition to the prepackaged Interceptors, actionstruts-default.xml
includes prepackaged combinations in named Interceptor Stacks.
...