Title: Message
This is just for defining the interceptors. You need to specify which interceptors are applied to your actions.
 
 
You can see that Action elements have interceptor-refs inside:
 
       <action name="Foo" class="com.opensymphony.xwork.SimpleAction">
            <param name="foo">17</param>
            <param name="bar">23</param>
            <result name="success" type="chain">
                <param name="actionName">Bar</param>
            </result>
            <interceptor-ref name="debugStack"/>
            <interceptor-ref name="defaultStack"/>
        </action>
You can also supply a default interceptor-ref which will be applied to Actions if no other interceptor-ref is supplied, like so:
<package name="default" extends="webwork-default">
        <interceptors>
            <interceptor-stack name="defaultComponentStack">
                <interceptor-ref name="component"/>
                <interceptor-ref name="defaultStack"/>
            </interceptor-stack>
        </interceptors>
        <default-interceptor-ref name="defaultStack"/>
        ...
</package>
See also http://wiki.opensymphony.com/space/Using+webwork-default.xml
-----Original Message-----
From: Chris Widhelm [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Request parameters not being set

Is there any documentation on the available interceptors and how to configure them?
 
Here is my interceptor configuration section:
 
<interceptors>
    <interceptor name="params" class="com.opensymphony.xwork.interceptor.ParametersInterceptor"/>
 
    <interceptor-stack name="defaultComponentStack">
        <interceptor-ref name="component"/>
        <interceptor-ref name="defaultStack"/>
        <interceptor-ref name="params"/>
    </interceptor-stack>
</interceptors>
 
This doesn't seem to work.  *shrug*
 
The interceptor documentation that I have found in the xwork configuration section doesn't quite make it clear for me.
----- Original Message -----
Sent: Monday, September 15, 2003 10:03 AM
Subject: RE: [OS-webwork] Request parameters not being set

Did you apply the ParameterInterceptor to the Action? This is what sets the parameters into the Action.
-----Original Message-----
From: Chris Widhelm [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] Request parameters not being set

I am in the process of switching to WW2 from WW1 and it appears that the parameters on a request are no longer being automatically set for an action.  Is this the case?
 
How do I access the parameters on a request?
 
Thanks,
 
Chris

Reply via email to