[jboss-user] [JBoss Portal] - Re: Determine portal logged-in user from external servlet

sohil.shah@jboss.com do-not-reply at jboss.com
Mon Nov 27 21:44:11 EST 2006


If the portlets and servlets are part of the same web application context,

dont you think request.getUserPrincipal() inside the servlet should result in the Principal of the user logged in to the Portal. null if anonymous.


Then the userid can be encoded as a url parameter on AJAX requests, or AJAX processor on the server side can extract user id via request.getUserPrincipal call.




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989154#3989154

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989154



More information about the jboss-user mailing list