You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mu...@aol.com on 2009/02/18 17:12:24 UTC

@Result annotation (2.1.6) -- name does not default to 'success'

I noticed while upgrading that the new @Result annotation
[import org.apache.struts2.convention.annotation.Result]
forces you to explicitly put in the name attribute. Is there a reason fro dropping
the convention that it defaults to "success"?
Chris Mawata

Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by mu...@aol.com.
Wasn't aware of it (the separator) and that any single character does the separation trick. Thanks for the pointer.
Chris


 

-----Original Message-----
From: Dave Newton <ne...@yahoo.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Thu, 19 Feb 2009 12:58 pm
Subject: Re: @Result annotation (2.1.6) -- name does not default to 'success'









musomesa@aol.com wrote:?

> I was trying to dodge the massive renaming of the jsps to hyphenated names.?
?

Depending on your current naming conventions the 
"struts.convention.action.name.separator" might be of use.?
?

That aside, most massive renaming tasks can be handled with a few-line 
[perl|python|ruby|shell|etc] script, so it shouldn't be *that* bad!?
?

Dave?
?


---------------------------------------------------------------------?

To unsubscribe, e-mail: user-unsubscribe@struts.apache.org?

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



 


Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by Dave Newton <ne...@yahoo.com>.
musomesa@aol.com wrote:
> I was trying to dodge the massive renaming of the jsps to hyphenated names.

Depending on your current naming conventions the 
"struts.convention.action.name.separator" might be of use.

That aside, most massive renaming tasks can be handled with a few-line 
[perl|python|ruby|shell|etc] script, so it shouldn't be *that* bad!

Dave


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


Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by mu...@aol.com.
Hi Pawel
    agreed -- I was trying to dodge the massive renaming of the jsps to hyphenated names. Oh well...
Cheers
Chris


-----Original Message-----
From: Paweł Wielgus <po...@gmail.com>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Thu, 19 Feb 2009 3:12 am
Subject: Re: @Result annotation (2.1.6) -- name does not default to 'success'



Hi Chris,
ust a side note, when You are using new @Result annotation You might
lso use Convention style results and then You don't have to use
efault success @Result at all.
Best greetings,
aweł WIelgus.
2009/2/18  <mu...@aol.com>:
 I noticed while upgrading that the new @Result annotation
 [import org.apache.struts2.convention.annotation.Result]
 forces you to explicitly put in the name attribute. Is there a reason fro 
ropping
 the convention that it defaults to "success"?
 Chris Mawata

---------------------------------------------------------------------
o unsubscribe, e-mail: user-unsubscribe@struts.apache.org
or additional commands, e-mail: user-help@struts.apache.org


Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by Paweł Wielgus <po...@gmail.com>.
Hi Chris,
just a side note, when You are using new @Result annotation You might
also use Convention style results and then You don't have to use
default success @Result at all.

Best greetings,
Paweł WIelgus.

2009/2/18  <mu...@aol.com>:
> I noticed while upgrading that the new @Result annotation
> [import org.apache.struts2.convention.annotation.Result]
> forces you to explicitly put in the name attribute. Is there a reason fro dropping
> the convention that it defaults to "success"?
> Chris Mawata
>

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


Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by Musachy Barroso <mu...@gmail.com>.
Fixed in trunk. https://issues.apache.org/struts/browse/WW-3003

thanks for reporting.
musachy

On Wed, Feb 18, 2009 at 11:21 AM, Musachy Barroso <mu...@gmail.com> wrote:
> That looks like a bug to me.
>
> musachy
>
> On Wed, Feb 18, 2009 at 11:12 AM,  <mu...@aol.com> wrote:
>> I noticed while upgrading that the new @Result annotation
>> [import org.apache.struts2.convention.annotation.Result]
>> forces you to explicitly put in the name attribute. Is there a reason fro dropping
>> the convention that it defaults to "success"?
>> Chris Mawata
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Re: @Result annotation (2.1.6) -- name does not default to 'success'

Posted by Musachy Barroso <mu...@gmail.com>.
That looks like a bug to me.

musachy

On Wed, Feb 18, 2009 at 11:12 AM,  <mu...@aol.com> wrote:
> I noticed while upgrading that the new @Result annotation
> [import org.apache.struts2.convention.annotation.Result]
> forces you to explicitly put in the name attribute. Is there a reason fro dropping
> the convention that it defaults to "success"?
> Chris Mawata
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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