Sorry this is what i meant to type :)

<bean id="personAction"
class="org.appfuse.tutorial.webapp.action.PersonAction" scope="prototype">
       <property name="userManager" ref="userManager"/>
</bean>

Philip Barlow wrote:
Have you added this to your applictionContext.xml?

<bean id="personAction" class="org.appfuse.tutorial.webapp.action.PersonAction" scope="prototype"> <property name="personManager" ref="personManager"/> </bean>


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 supposed to define to
make it not null?
userManager.get(User.class,"1"); doesn't work. It throws
NullPointerException.

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to