Re: Cannot find bean: "xxxx" in any scope

2009-08-27 Thread Paweł Wielgus
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 (usabi

Re: Cannot find bean: "xxxx" in any scope

2009-08-27 Thread Hanen Ben Rhouma
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, Luka

Re: Cannot find bean: "xxxx" in any scope

2009-08-27 Thread Lukasz Lenart
2009/8/27 Hanen Ben Rhouma : >            path="/users" >            id="users" >            scope="request" >            name="users" >            type="com.myapp.struts.UsersAction" >            parameter="/users.jsp"> > Did you define form-bean with name "users"? Instead using name="users" in

Re: Cannot find bean: "xxxx" in any scope

2009-08-27 Thread Paweł Wielgus
Hi Hanen, i have no clue if that what You have done is ok (long time off struts1), but a typical action definition in struts-config.xml looks like this: and i don't know if You are confusing beans with actions maybe? I also don't know if by adding id attribute to action one makes th

Cannot find bean: "xxxx" in any scope

2009-08-27 Thread Hanen Ben Rhouma
Hello there, Please I have a blocking point which on which I've spent two days with no light at the end if tunnel: Actually I've declared my bean into struts-config.xml like this: after that I tried to invoke this bean's method so I wrote in my users.jsp page: when running my application i