@Result annotation not working

2008-10-14 Thread Dan C.
Hi, I have an app built on struts 2.0.11.2, Tiles 2.0.6 and spring 2.5.5. Everything is currently configured with xml. I wanted to start moving as much as I could to zero configuration. The result annotations do not seem to get recognized. I did a simple change to 1 class to see if it works and he

Struts2: result annotation not working when using Spring?

2008-06-15 Thread Marc Logemann
Hi, i am creating my actions via Spring. This works very well. But even though i use the "actionPackages" parameter of the FilterDispatcher, my @Result annotations dont work. Is this a Spring integration issue or what? I am getting this error in the frontend: # No result defined for acti

Re: [S2] Result annotation not working

2007-02-09 Thread Dave Newton
--- Don Brown <[EMAIL PROTECTED]> wrote: > True...hmm...well, at the least, we should warn > people or configure the annotation to not be able to > be set at the method level. I had updated the @Result anno wiki docs based on the OP's woes, but yeah, making it a class-level annotation would help

Re: [S2] Result annotation not working

2007-02-09 Thread Don Brown
True...hmm...well, at the least, we should warn people or configure the annotation to not be able to be set at the method level. Don On 2/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Don Brown <[EMAIL PROTECTED]> wrote: > Hm...if it doesn't work on the method level, file a > ticket as it sh

Re: [S2] Result annotation not working

2007-02-09 Thread Dave Newton
--- Don Brown <[EMAIL PROTECTED]> wrote: > Hm...if it doesn't work on the method level, file a > ticket as it should work that way. If nothing else > we should document it better. I first annotated my methods, which failed, and I was confused, but... results are defined in the XML file for the t

Re: [S2] Result annotation not working

2007-02-09 Thread Don Brown
Hm...if it doesn't work on the method level, file a ticket as it should work that way. If nothing else we should document it better. Don On 2/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Laurie Harper <[EMAIL PROTECTED]> wrote: > > Doh! That was

Re: [S2] Result annotation not working

2007-02-09 Thread Dave Newton
--- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Laurie Harper <[EMAIL PROTECTED]> wrote: > > Doh! That was the problem. I could have sworn the > > examples I looked at had it at the method level. > I added more on the topic [...] And no, I didn't sneak in and change the examples ;) d.

Re: [S2] Result annotation not working

2007-02-09 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Doh! That was the problem. I could have sworn the > examples I looked at had it at the method level. I had done the exact same thing the first time I used annotations (hence the @Result page :) I added more on the topic as a result of your issues and

Re: [S2] Result annotation not working

2007-02-08 Thread Laurie Harper
Nate Drake wrote: The @Result annotation should be at the class level, not the method level. Doh! That was the problem. I could have sworn the examples I looked at had it at the method level. Mea culpa! Thanks, L. - To un

Re: [S2] @Result annotation not working

2007-02-08 Thread Laurie Harper
Dave Newton wrote: --- Laurie Harper <[EMAIL PROTECTED]> wrote: What do I need to do to make @Result annotations on my action methods work? What doesn't work/what are the symptoms? I had it working under 2.0.4 (w/ the 2.0.4 jars, anyway) until it seemed I wouldn't be able to use it because of

Re: [S2] Result annotation not working

2007-02-08 Thread Nate Drake
The @Result annotation should be at the class level, not the method level. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] @Result annotation not working

2007-02-08 Thread Ian Roughley
Do you have the web.xml init-param "actionPackages" listing the package that the action is in? /Ian Dave Newton wrote: --- Laurie Harper <[EMAIL PROTECTED]> wrote: What do I need to do to make @Result annotations on my action methods work? What doesn't work/what are the symptoms?

Re: [S2] @Result annotation not working

2007-02-08 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > What do I need to do to make @Result annotations on > my action methods work? What doesn't work/what are the symptoms? I had it working under 2.0.4 (w/ the 2.0.4 jars, anyway) until it seemed I wouldn't be able to use it because of an apparent confli

[S2] @Result annotation not working

2007-02-07 Thread Laurie Harper
What do I need to do to make @Result annotations on my action methods work? I'm using the code-behind and zero-config plugins, and tried to add the annotation like this: @Result(value = "users", type = ServletActionRedirectResult.class) public String save() { userService.saveUse