91-9990449935 0120-4256464 |
Struts 2 params interceptor exampleThe params interceptor also known as parameters interceptor is used to set all parameters on the valuestack. It is found in the default stack bydefault. So you don't need to specify it explicitely. Internal working of params interceptorIt gets all parameters by calling the getParameters() method of ActionContext and sets it on the valuestack by calling the setValue() method of ValueStack. Parameters of params interceptorThere are 4 parameters defined for params interceptor.
Example of params interceptorLet's see the simple example of params interceptor. Note: If you specify any interceptor for the action explicitely, default interceptors will not be available for the action class.Struts 2 defaultStack interceptorsThe params interceptor is found in the default stack. You don't need to specify interceptors found in the default-stack. The defaultStack interceptors are as follows:
Next TopicStruts2 ExecAndWait Interceptor Example
|