Yes. I was trying to invoke index.jsp directly. I guess I could wrap
this as a portlet and put it in the default psml and it should work.
There is still one more problem. How could I hide the portlet title and
the minimizer/maximizer on the up front login page, but the portlet
title, minimizer/maximizer show as usual after login.

Thanks
Yiguang

-----Original Message-----
From: Ate Douma [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 15, 2006 3:10 AM
To: Jetspeed Users List
Subject: Re: How to access the UserManager from a regular jsp

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]


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

Reply via email to