struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: struts 1 to struts2 migration.
Date Wed, 07 Aug 2013 14:04:12 GMT
You can try to write your own ActionMapper which will extract request
parameter "action" and base on that lookup for action.

2013/8/7 Arpan <arpan.debroy@gmail.com>:
> Anybody to help here...
>
> Thanks in Advance.
>
>
> On Tue, Aug 6, 2013 at 7:43 PM, Arpan <arpan.debroy@gmail.com> wrote:
>
>> Hi All,
>>
>> We are migrating from struts1 to struts2.
>>
>> In our pages we have multiple buttons which through struts1 DispatchAction
>> can be guided  to different methods in Action class. For that we need
>> minimal changes. Such as
>>  In action mapping if we add parameter="action" and in JSP if the URL is
>> like x.do?action=method1, it happily directs the control to method1 in
>> Action class.
>>
>> I got the bellow link for struts2, but for that also we need much changes
>> to be done.
>> http://struts.apache.org/development/2.x/docs/multiple-submit-buttons.html
>>
>> Is there any such way we do similar functionality in struts2 with minimal
>> changes.
>>
>> Thanks
>>
>>
>>

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


Mime
View raw message