UserAction:
public class UserAction extends PortletAction {
private IUserManager userManager;
public IUserManager getUserManager() {
return userManager;
}
public void setUserManager(IUserManager userManager) {
this.userManager = userManager;
}
public ActionForward render(
ActionMapping mapping, ActionForm form, PortletConfig portletConfig,
RenderRequest renderRequest, RenderResponse renderResponse)
throws Exception {
System.out.println("user test is successed" + this.getUserManager());
return mapping.findForward("portlet.spr.user.view");
}
}
but the result is null
this.getUserManager() is null?
why???
who can tell me?
请登录并以举报不当内容。