You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by cm132005 <cm...@gmail.com> on 2009/05/06 18:37:28 UTC

Struts 2 - Dispatch Action

In Struts 1 dispatch action, a request parameter can be set either as a form
attribute or as a request attribute from within any action class or through
URL and the correct dispatch method in the action gets invoked. Is there a
way to do this in Struts 2? 

We are migrating our Struts 1.x application to Struts 2 and trying to find
out if we can have the proper dispatch method invoked by setting a request
parameter. I am a Struts 2 newbie and so far found only 2 ways: 
1. By defining the method property in the submit button tag. 
2. Using URL dAction.do?method:dMethodName or dAction!dMethodName.do

Thanks.
-- 
View this message in context: http://www.nabble.com/Struts-2---Dispatch-Action-tp23410702p23410702.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: Struts 2 - Dispatch Action

Posted by Martin Gainty <mg...@hotmail.com>.
specifically action <bang> method
http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-DynamicMethodInvocation

although i wonder about the derivation of ! = bang assignment?
Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 10 May 2009 08:16:04 -0400
> From: newton.dave@yahoo.com
> To: user@struts.apache.org
> Subject: Re: Struts 2 - Dispatch Action
> 
> Marco Bakera wrote:
> > cm132005 schrieb am 06.05.2009 18:37:
> >> In Struts 1 dispatch action, a request parameter can be set either as 
> >> a form attribute or as a request attribute from within any action 
>  >> class or through URL and the correct dispatch method in the action
>  >> gets invoked. Is there a way to do this in Struts 2?
> 
> Dynamic method invocation.
> 
> > Is there some kind of migration guide that discusses issues like these?
> 
> When I search the web there appear to be several.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: Struts 2 - Dispatch Action

Posted by Dave Newton <ne...@yahoo.com>.
Marco Bakera wrote:
> cm132005 schrieb am 06.05.2009 18:37:
>> In Struts 1 dispatch action, a request parameter can be set either as 
>> a form attribute or as a request attribute from within any action 
 >> class or through URL and the correct dispatch method in the action
 >> gets invoked. Is there a way to do this in Struts 2?

Dynamic method invocation.

> Is there some kind of migration guide that discusses issues like these?

When I search the web there appear to be several.

Dave


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


Re: Struts 2 - Dispatch Action

Posted by Marco Bakera <ma...@bfs-hf.de>.
cm132005 schrieb am 06.05.2009 18:37:
> In Struts 1 dispatch action, a request parameter can be set either as a form
> attribute or as a request attribute from within any action class or through
> URL and the correct dispatch method in the action gets invoked. Is there a
> way to do this in Struts 2? 

Is there some kind of migration guide that discusses issues like these?


Greetings,
Marco.

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