Thanks for the response. After I create an action with setters and getters , how can I use this action in javascript functions.
On 2020/04/15 05:26:03, Lukasz Lenart <lukaszlen...@apache.org> wrote: > wt., 14 kwi 2020 o 12:36 Kishore Venkatesh <kishore...@gmail.com> napisał(a): > > I'm migrating an application from struts 1 to struts 2, I have some forms > > and form beans defined in struts-config.xml . How do I map these into > > struts 2. I know about struts 2 forms , and mapping form to user bean . My > > question how do I map virtual forms in struts 2. > > You meant DynaActionForm? In such case you must create an action with > all the fields and setters you need. You can always access passed > values via Named Objects, but this rather a weak solution as you loose > framework's conversion and validation abilities. > > https://struts.apache.org/tag-developers/ognl-basics#struts-2-named-objects > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org