Re: [appfuse-user] How To Get All Users in an Action

2007-04-23 Thread Philip Barlow
It shouldn't really matter once your applicationContext*.xml file follows the correct structure and is loaded up in the correct way i.e. propbably through your web.xml in this case. Can you mail me or post your applicationContext files? Maybe if you post you Struts2 Fan wrote:

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Struts2 Fan
>> > class="org.appfuse.tutorial.webapp.action.PersonAction" >> scope="prototype"> >> >> I added this to the ApplicationContext-struts.xml already but still it gets null. Do I put it ApplicationContext.xml? I know that we define Struts2-Actions in the ApplicationContext-struts.xml Thank

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Philip Barlow
Sorry this is what i meant to type :) Philip Barlow wrote: Have you added this to your applictionContext.xml? class="org.appfuse.tutorial.webapp.action.PersonAction" scope="prototype"> Struts2 Fan wrote: Hi All, I have a problem. I created the PersonAction as shown in the

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Philip Barlow
Have you added this to your applictionContext.xml? Struts2 Fan wrote: Hi All, I have a problem. I created the PersonAction as shown in the tutorials and in this PersonAction I want to use the userManager which defined in the BaseAction. And the userManager is null. What am I supp

[appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Struts2 Fan
Hi All, I have a problem. I created the PersonAction as shown in the tutorials and in this PersonAction I want to use the userManager which defined in the BaseAction. And the userManager is null. What am I supposed to define to make it not null? userManager.get(User.class,"1"); doesn't work. It