I'm using the REST plugin and am trying to setup annotations.

My package looks like this:

<package name="default" extends="rest-default">
        <result-types>
                <result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult" />
        </result-types>
        
        <interceptors>
                <interceptor name="cookie"
class="org.apache.struts2.interceptor.CookieInterceptor" />
                <interceptor-stack name="validationStack">
                        <interceptor-ref name="validation" />
                        <interceptor-ref name="defaultStack" />
                </interceptor-stack>
        </interceptors>
        <default-interceptor-ref name="validationStack" />
        
</package>

This works in that I get validation, however certain parts of the REST
framework are not working.

If I take out the validation interceptor then REST works but the
validation doesn't (of course :) )

So I guess I've not set up the stack correctly - what needs to go in
here to get the full REST stack and validation?

Thanks,

-- 
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to