Skip to Content
0
Former Member
Jul 08, 2004 at 12:57 AM

How to get EP 6 logon id in JSP

38 Views

Hello All,

How do I get EP 6 logged on userid in JSP.

I tried to get using "request.getUser().getUserId()" but it always returning null. I'm using JSPDynPage. Kindly suggest me as know how I can get logged on id. Is there way to get user id in JSP page itself. I'm not using application integrator. Sample code goes like this...

public static class Sales_TrackDynPage extends JSPDynPage {

public void doInitialization() {

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

String userid = request.getUser().getUserId();

}

but variable userid is always null.

Thanks in Advance,

Praveen