You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nate Drake <nd...@gmail.com> on 2007/02/08 17:13:48 UTC

Re: [S2] Result annotation not working

The @Result annotation should be at the class level, not the method level.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Dave Newton <ne...@yahoo.com>.
--- Don Brown <do...@gmail.com> 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 some.

Dave



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Don Brown <do...@gmail.com>.
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 <ne...@yahoo.com> wrote:
> --- Don Brown <do...@gmail.com> 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 the Action itself, not its individual methods,
> right?
>
> If that's correct, I'm not sure how the mindset of
> results-per-class vs. results-per-method would be
> reconciled, would you then have to enforce that a
> result was valid only for the annotated method, etc.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Dave Newton <ne...@yahoo.com>.
--- Don Brown <do...@gmail.com> 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 the Action itself, not its individual methods,
right?

If that's correct, I'm not sure how the mindset of
results-per-class vs. results-per-method would be
reconciled, would you then have to enforce that a
result was valid only for the annotated method, etc.

d.



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Don Brown <do...@gmail.com>.
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 <ne...@yahoo.com> wrote:
> --- Dave Newton <ne...@yahoo.com> wrote:
> > --- Laurie Harper <la...@holoweb.net> 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.
>
>
>
>
> ____________________________________________________________________________________
> Expecting? Get great news right away with email Auto-Check.
> Try the Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Dave Newton <ne...@yahoo.com>.
--- Dave Newton <ne...@yahoo.com> wrote:
> --- Laurie Harper <la...@holoweb.net> 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.



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Dave Newton <ne...@yahoo.com>.
--- Laurie Harper <la...@holoweb.net> 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 highlighted
the class-level bit and actionPackages config.

Dave



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] Result annotation not working

Posted by Laurie Harper <la...@holoweb.net>.
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 unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org