Hi Alex, You can declare your different interceptor stacks in different packages and then declare the parent package on the action like this:
@ParentPackage("packageWithEmptyStack") public class FooAction ... Aside from bug WW-2170 and the repeated use of the @ParentPackage annotation, I prefer working with annotation-based configuration instead of XML-based. Overall it's more concise, it's closer to the relevant code and you don't lose that much flexibility - I haven't yet run into a situation where I needed to revert to XML-based config. Cheers, GB Alex Shneyderman wrote: > > Thanks, Brad! > >> Having said all of that, I've been able to get the zero >> config/codebehind working and (in Spring 2.5) component scanned Spring >> beans so that newly written Actions and DAOs require few annotations and >> no xml configuration. What other kind of problems have you had? > > How do I specify an interceptor stack/ref on an action with > annotations? I have lookup actions that need no stack at all, so I > created an almost empty stack in my struts.xml. Now, how do I specify > this on an action without specifying the action in struts.xml? > > I simply find annotation way very much incomplete. Maybe it will get > there some day but I really need to be in full control of what I can > specify - just the way I could do with strtus.xml file. I do not want > to have several strategies to configure my actions on the same project > ... it's not cool and makes things hard to read/maintain. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/ServletRedirectActionResult---is-there-a-way-to-set-parameters--tp16717332p16744232.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]