This problem has nothing to do with websphere !!!
you can do same by putting user name in session during login.
later you can use same anywhere[/QB]
Well , I am not sure I know how to do it. In order to put user name to the
session I have to get , am I write?
actually this is my question, I sow some examples how to do it with puma api , but it's not jsr168 standard
here example in case jetspeed portal!!!
page import='org.apache.jetspeed.portlet.*'
page import='com.ibm.portal.puma.User'
page import='com.ibm.portal.puma.Group'
page import='com.ibm.wps.puma.UserManager'
PortletRequest req = (PortletRequest)pageContext.getRequest();
com.ibm.portal.puma.User usr = (com.ibm.portal.puma.User)req.getUser();
String test = usr.getFullName();
out.println(test+"
");
I tried to do this way:
page session="false" contentType="text/html" import="java.util.*,javax.portlet.*,portlet_user_name.*,com.ibm.portal.puma.*,com.ibm.wps.puma.*" %>
taglib uri="http://java.sun.com/portlet" prefix="portlet"
RenderRequest renderReq = (RenderRequest) request.getAttribute ("javax.portlet.request");
RenderResponse renderRes = (RenderResponse) request.getAttribute ("javax.portlet.response");
PortletRequest req = (PortletRequest)pageContext.getRequest();
String usr=renderReq.getRemoteUser();
out.print(usr);
but result was null:-(
so how can I get the user name???
could you give a short example.