You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Felipe Lorenz <fe...@gmail.com> on 2008/05/14 15:04:02 UTC
Struts Annotation
Hi.
Im try to use annotations for action results.
but, the annotations is for a class, not for each method in an class...
fallow this idea, for each CRUD operations i need one actions class??? Or
have other way to do one action class for CRUD operations?
Felipe A. lorenz
www.idealogic.com.br
Re: Struts Annotation
Posted by Ian Roughley <ia...@fdar.com>.
So all the action results are defined at the class level and used per
CRUD method. So if you define "input", "success", "page1", etc. at the
top, each of the CRUD methods can then choose which result to return.
Did you mean that you want annotations that map the action name to the
CRUD method? This case is not currently supported via the zero config
setup (a convention is used). You might want to check out the
convention plug-in.
/Ian
Felipe Lorenz wrote:
> Yes.. told it in my question... i need to know if have some different way to
> use one class to implement CRUD methods!!
>
> On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <ia...@fdar.com> wrote:
>
>
>> Results are annotated at the class level, see
>> http://struts.apache.org/2.0.6/docs/annotations.html
>>
>> /Ian
>>
>>
>> Felipe Lorenz wrote:
>>
>>
>>> Hi.
>>>
>>> Im try to use annotations for action results.
>>>
>>> but, the annotations is for a class, not for each method in an class...
>>>
>>> fallow this idea, for each CRUD operations i need one actions class??? Or
>>> have other way to do one action class for CRUD operations?
>>>
>>> Felipe A. lorenz
>>> www.idealogic.com.br
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> 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: Struts Annotation
Posted by Felipe Lorenz <fe...@gmail.com>.
Yes.. told it in my question... i need to know if have some different way to
use one class to implement CRUD methods!!
On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <ia...@fdar.com> wrote:
> Results are annotated at the class level, see
> http://struts.apache.org/2.0.6/docs/annotations.html
>
> /Ian
>
>
> Felipe Lorenz wrote:
>
>> Hi.
>>
>> Im try to use annotations for action results.
>>
>> but, the annotations is for a class, not for each method in an class...
>>
>> fallow this idea, for each CRUD operations i need one actions class??? Or
>> have other way to do one action class for CRUD operations?
>>
>> Felipe A. lorenz
>> www.idealogic.com.br
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Struts Annotation
Posted by Ian Roughley <ia...@fdar.com>.
Results are annotated at the class level, see
http://struts.apache.org/2.0.6/docs/annotations.html
/Ian
Felipe Lorenz wrote:
> Hi.
>
> Im try to use annotations for action results.
>
> but, the annotations is for a class, not for each method in an class...
>
> fallow this idea, for each CRUD operations i need one actions class??? Or
> have other way to do one action class for CRUD operations?
>
> Felipe A. lorenz
> www.idealogic.com.br
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org