Monday, May 19, 2008

Struts2 and @ParentPackage

I have started using Struts2 in several projects and I really like the zeroconf plugin. However the documentation is really sparse and so I wasted half a day in looking for a way to attach my zero configured actions to a certain stack or interceptor. One of my colleagues even wrote his own annotation for doing so -- but buried deep in the documentation there is the magic @ParentPackage annotation which does just that. Check it out: