struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Rppe: What is the effect of Params Interceptor?
Date Tue, 23 Sep 2014 07:58:33 GMT
Dear Vineesh,

The 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. It gets all 
parameters by calling the getParameters() method of ActionContext and sets 
it on the valuestack by calling the setValue() method of ValueStack. 

Note: If you specify any interceptor for the action explicitely, default 
interceptors will not be available for the action class.

Please refer to these URLs:

Thanks & Regards
Manoj Kumar Sharma

Rppe: What is the effect of Params Interceptor?

Vineesh Anand 
Struts Users Mailing List
09/23/2014 12:33 PM

Please respond to "Struts Users Mailing List"

On Nov 25, 2012 4:37 PM, "Wu Ming" <> wrote:

> I read this tutorial<
> but I don't understand what Params Interceptor is used for?
> Example:
> <action name="someAction" class="com.examples.SomeAction">
>     <interceptor-ref name="params"/>
>     <result name="success">result.jsp</result>
> </action>
> If the timer interceptor being used, we will see this kind of message:
> *INFO: Executed action [//hello!execute] took 109 ms.*
> But what about params interceptor? What would happened if it's used? I
> tried and don't see anything.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message