struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arpan <arpan.deb...@gmail.com>
Subject Re: struts 1 to struts2 migration.
Date Wed, 07 Aug 2013 16:15:53 GMT
Thank you so much Lukasz.. While migrating I found few more problems. Such
as

In struts 1 JSP I have used <bean:define id="x" type="BeanClass"
name="FormName" />
In scriplet there are many places we used <% String s = x.getName(); %>

In struts 2 we can write <s:bean name="BeanClass" var="x"/>

Now how can I use the "x" object in scriplet. As there are many references
of "x" already written, I don't want to change so much code for now. Hence
like to use scriplet only.

Thanks


On Wed, Aug 7, 2013 at 7:34 PM, Lukasz Lenart <lukaszlenart@apache.org>wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message