Hi Hanen, i don't think there is a simple answear to this question, some say you should and some of us use only one (or few) forms in whole app, every solution has it's own problems and limitations. Also there is another question if to use session or request form, which also has many answers (usability vs security).
But one thing is for sure, yes You have to use form in action. You can also read some info about dynaforms. Best greetings, Paweł Wielgus. 2009/8/27 Hanen Ben Rhouma <hanen...@gmail.com>: > Thankyou Guys for your answers, > > In fact, I thought that using ActionForm isn't compulsory to inject beans > result into jsp pages. > Did that mean that I have to create an ActionForm for each Action i create > and call it in my execute method? > > Kind Regards, > Hanen > > On Thu, Aug 27, 2009 at 12:24 PM, Lukasz Lenart < > lukasz.len...@googlemail.com> wrote: > >> 2009/8/27 Hanen Ben Rhouma <hanen...@gmail.com>: >> > <action >> > path="/users" >> > id="users" >> > scope="request" >> > name="users" >> > type="com.myapp.struts.UsersAction" >> > parameter="/users.jsp"> >> > </action> >> >> Did you define form-bean with name "users"? Instead using name="users" >> in action is better to use name="usersForm" and define form beans as >> follow >> >> <form-beans> >> <form-bean name="usersForm" type="org.demo.web.UsersForm"/> >> </form-beans> >> >> >> Regards >> -- >> Lukasz >> http://www.lenart.org.pl/ >> http://dailylog.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