Mark Menard wrote:
> 
> On 4/20/07 3:56 PM, "Dmitriy Kuznetsov" <[EMAIL PROTECTED]> wrote:
> 
>> <struts>
>>   <package name="testMe" extends="struts-default">
>>       <interceptors>
>>           <interceptor name="voidInt"
>> class="myinterceptor.VoidInterceptor" />
>>       </interceptors>
>> 
>>       <action name="action-intercepted" class="SimpleAction">
>>           <interceptor-ref name="voidInt"/>
> 
> I think this is your problem. Your voidInt interceptor is the only one
> that
> is being called for this action.
> 
> The setting of parameters is done using an interceptor. By setting the
> interceptor for this action you've excluded it from the configuration.
> 
> You need to create an interceptor stack that includes your custom
> interceptor as well as the interceptors for the params, model driven,
> workflow etc.
> 
> Example:
> 
>     <package name="quadran-default" extends="struts-default">
>         <interceptors>
>     
>             <interceptor name="qmenu" class="menuInterceptor" />
>             <interceptor name="conversation-model-driven"
>     
> class="net.vitarara.quadran.core.web.util.ConversationModelInterceptor"
> />
>             <interceptor name="login" class="loginInterceptor" />
> 
>             <interceptor-stack name="defaultLoginStack">
>                 <interceptor-ref name="qmenu" />
>                 <interceptor-ref name="servlet-config" />
>                 <interceptor-ref name="params" />
>                 <interceptor-ref name="login" />
>                 <interceptor-ref name="conversation-model-driven" />
>                 <interceptor-ref name="prepare" />
>                 <interceptor-ref name="chain" />
>                 <interceptor-ref name="model-driven" />
>                 <interceptor-ref name="fileUpload" />
>                 <interceptor-ref name="static-params" />
>                 <interceptor-ref name="params" />
>                 <interceptor-ref name="conversionError" />
>                 <interceptor-ref name="validation" />
>                 <interceptor-ref name="workflow" />
> 
>                 <!-- <interceptor-ref name="component" /> -->
>                 <!-- <interceptor-ref name="debugging" /> -->
>                 <!-- <interceptor-ref name="valuestack-debugger" /> -->
>             </interceptor-stack>
>      </interceptors>
>   </package>
> 
> Mark
> 

Thank you for explaination, Mark. I did as you wrote and it works fine now.

-- 
View this message in context: 
http://www.nabble.com/How-to-force-request-parameters-to-be-passed-to-action-through-interceptor--tf3620324.html#a10112002
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to