You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Tim T. Young" <Yo...@cat.com> on 2002/06/25 22:52:51 UTC
DispatchAction
I am using a subclass of DispatchAction to route multiple operations (add,
delete, etc) to methods
of the same name. I have named all of the buttons the same and used that
name in the parameter
entry of the action mapping (not concerned with i18n). The quirk I have
found is that since my buttons
are "Add", "Delete", etc my method names have to be capitalized too. Which
is not standard convention
and people wonder what the heck I am doing.
Any thoughts?
(Using 1.0.2)
Thanks,
Tim
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: DispatchAction
Posted by matt_raible <ma...@yahoo.com>.
Try LookupDispatchAction - this allows you to map button names (vi
ApplicationResources.properties) to your button names.
jakarta site -> struts -> javadocs.
HTH,
Matt
--- In struts@y..., "Tim T. Young" <Yo...@c...> wrote:
>
> I am using a subclass of DispatchAction to route multiple
operations (add,
> delete, etc) to methods
> of the same name. I have named all of the buttons the same and
used that
> name in the parameter
> entry of the action mapping (not concerned with i18n). The quirk
I have
> found is that since my buttons
> are "Add", "Delete", etc my method names have to be capitalized
too. Which
> is not standard convention
> and people wonder what the heck I am doing.
>
> Any thoughts?
>
> (Using 1.0.2)
>
> Thanks,
> Tim
>
>
> --
> To unsubscribe, e-mail: <ma...@j...>
> For additional commands, e-mail: <ma...@j...>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>