[jboss-user] [JBoss Portal] - Re: How can I get current portal user from javax.portlet.Por

freesoul do-not-reply at jboss.com
Sun Apr 20 07:08:53 EDT 2008


Yesterday I can't understand jboss portlet container very well, so I didn'i konw the relationship between javax.portlet.ActionRequest and org.jboss.portlet.JBossActionRequest, but now I get it.

public class org.jboss.portlet.JBossActionRequest extends org.jboss.portal.portlet.impl.jsr168.api.ActionRequestImpl {
  | }

and implements javax.portlet.ActionRequest interface.

So we can get current user in struts2 like that:
((org.jboss.portlet.JBossActionRequest) PortletActionContext
  | 					.getActionRequest()).getUser();

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

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



More information about the jboss-user mailing list