agreed-
also could you please post struts-plugin.xml value assigned to 
defaultParentPackage e.g.
<constant name="struts.configuration.classpath.defaultParentPackage" 
value="rest-default" />

since the PackagePolicy RetentionPolicy defaults to RUNTIME defined as
Annotations are to be recorded in the class file by the compiler and
 retained by the VM at run time, so they may be read reflectively.

I would be interested to know the output from
javap cn.openmotel.lorenzo.web.struts2.PaginationSupportInterceptor

thanks,
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Wed, 15 Oct 2008 10:04:51 -0400
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: How to setup Interceptor when using struts2.1.2 rest plugin with 
> codebehind?
> 
> Can you post the definition of your "newpackage" package?
> 
> musachy
> 
> On Wed, Oct 15, 2008 at 9:58 AM, Haulyn Jason <[EMAIL PROTECTED]> wrote:
> 
> > Hi,all
> > My application is running on struts2.1.2 with rest plugin and codebehind.
> >  The code is like Struts2.1.2-rest-showcase.war. But when I want to add my
> > own Interceptors, something broken.
> >
> > I add a new package extends "struts-default" and re-defined the
> > interceptor-stack as below:
> >
> >        <interceptors>
> >            <interceptor name="paginationSupportInterceptor"
> > class="cn.openmotel.lorenzo.web.struts2.PaginationSupportInterceptor" />
> >            <interceptor-stack name="defaultInterceprotStack">
> >                <interceptor-ref name="checkbox" />
> >                <interceptor-ref name="params" />
> >                <interceptor-ref name="paginationSupportInterceptor" />
> >                <interceptor-ref name="defaultStack" />
> >            </interceptor-stack>
> >        </interceptors>
> >        <default-interceptor-ref
> > name="defaultInterceprotStack"></default-interceptor-ref>
> >
> > I want my OrdersController run under this package, so I add annotation
> > @ParentPackage(value="newpackage"). Then something break.
> >
> > I debug my application and found the OrdersController worked but struts2
> > can not find the result setting. But before I add
> > @ParentPackage(value="newpackage"), everything works well.
> >
> > I defind my Result as
> > @Results({
> >    @Result(name="success", type=ServletActionRedirectResult.class,
> > value="website/orders")
> > })
> >
> > I spent two days on this but it didn't work anymore. I found two
> > Interceptors in the REST plugin, did I lose something?
> >
> >  Thanks!
> >
> >
> > Mobile: +086-15864011231
> > Website:http://www.openmotel.cn
> > http://www.vvthumb.com
> > GTalk:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > Skype:saharabear
> >
> >
> >
> >
> > Haulyn Runner Jason
> >
> >
> >
> >
> 
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

Reply via email to