Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] @Result annotation not working

Laurie Harper

2007-02-08

Replies:

Dave Newton wrote:
> --- Laurie Harper <laurie@(protected):
>> 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 conflict of interests between slashes in
> action names and the zero-config.

The symptoms are that, no matter what annotations I add, I always get
the same behaviour as if I specify none. I can't map a result name
(return "foo") to a page, or get the result to be a redirect, or
anything else. The @Result annotations always seem to be ignored.

> Do you have slashes turned on?

No, I don't.


L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.