Hello Paweł,

I have workaround:

1) Delete struts-default.xml from struts2 core jar

2) Move them to your application classpath

3) Rename existing struts-default to struts-default-original

4) At the end define your own package and call it struts-default: <package
name="struts-default" extends="struts-default-original" namespace="/"> and
put all your settings here (define your interceptors, stacks and set default
interceptor)

5) Delete struts.xml from your application classpath

That's it!

This is ugly, but there is no better solution for this problem right now.
Negative point for S2 team!

V

2008/6/28 Paweł Wielgus <[EMAIL PROTECTED]>:

> Hi Vanja,
> i din't solve the problem, someone said that package-info is working
> on trunk version (1.1.3 release?), but still it's not like the action
> in subpackage of a package with package-info will receive
> ParentPackage annotation - if i'm wrong i'll be very happy ;-)
>
> So i'm waiting for next release to give it a try.
>
> Best greetings,
> Pawel Wielgus.
>
> On 28/06/2008, Vanja Petreski <[EMAIL PROTECTED]> wrote:
> > Anybody?
> >
> > package-info.java does not work!
> >
> > Struts 2.0.11.1
> >
> > Vanja
> >
> > 2008/6/19 Paweł Wielgus <[EMAIL PROTECTED]>:
> >
> >> Hi all,
> >> i'm trying to add my own interceptor to all of my actions.
> >> I know that i can define new package ("default") and redefine default
> >> interceptor stack and then add @ParentPackage("default") to all my
> >> actions, but the question is how to do it in one place without having
> >> to add ParentPackage in all actions or writing configuration in xml?
> >>
> >> Best greetings,
> >> Paweł Wielgus.
> >>
> >
>

Reply via email to