I am trying to put an index.jsp under /Jetspeed to do login through the
/jetspeed/login/proxy action and it works. But I have two problems to
resolve.

 

1. Instead of user provide the user names/password, I am trying to get
all users as a list for user to select and provide the password only.

The question is how to get the UserManager. I read the discussions and
tried this

 

<[EMAIL PROTECTED] uri="/WEB-INF/tld/portlet.tld" prefix="portletapi"%>

 

<portletapi:defineObjects/>

<%

PortletContext ctx = portletConfig.getPortletContext();

UserManager userManager = (UserManager)

 
ctx.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);

%>

 

But it complains portletConfig is null. 

 

2. I also tried to do the following on this page (same as the j2-admin
login.jsp) and got null pointer exception also:

 

<c_rt:set var="errorCode"
value="<%=((RequestContext)request.getAttribute(RequestContext.REQUEST_P
ORTALENV)).getSessionAtt

ribute(LoginConstants.ERRORCODE)%>"/>

 

Thanks for any help you can provide.

 

Yiguang

 

Reply via email to