Hello Vanja, i'm aware of such solution, but as You sad it's a dirty hack and as for hacks - they tend to work only for a few next releases.
So You have to keep in mind that it will fail in let's say 2.1.4 because of some changes to the stack or interceptors and thats exactly why we din't make it this way. You may think i'm too much paranoic about it but we really had such an issue with interceptors and overwriting default stack in struts-default.xml Still S2 is my weapon of choise, so i'm just waiting for 2.1.3 where it will read ParentPackage fom package, then maybe i will be able to add searching it up the package tree or anything else that will do the job. Best greetings, Paweł Wielgus. On 30/06/2008, Vanja Petreski <[EMAIL PROTECTED]> wrote: > 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. > > >> > > > > > >