Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: From html5 page read portal(7.4) logged-in userid

$
0
0

Hi,

You can try creating a portal component which reads the logged in user and writing it back to response, and an iView from this portal component.

Then just call /include the iView, or directly call the portal component.

Then decide what needs to be done.

 

Sample code:

 

UserFactory userfact=UMFactory.getUserFactory();

IUser user=userfact.getUserByUniqueName(request.getUser().getUserId());

String usrid=user.getUniqueName();

 

Best Regards,

Tal


Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>