You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Don Brown <do...@gmail.com> on 2007/02/09 18:13:50 UTC

Re: [S2] Result annotation not working

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>.
--- 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