You need to invoke your index.jsp from a portlet to be able to use the
portlet api/taglibs, while you seem to be invoking your index.jsp directly
from the jetspeed context, right?
I suggest wrapping it in a portlet instead, then it all will work.
Hu, Yiguang wrote:
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]