You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by MURTHY GANDIKOTA <MG...@MEMBERSEDGELLC.COM> on 2007/11/15 20:15:11 UTC

Re: Remote Address sans Rundata-- Jetspeed 2

Thought this may be useful for some one:


import org.apache.jetspeed.request.RequestContext;
import org.apache.jetspeed.PortalReservedParameters;

public void processAction(ActionRequest req, ActionResponse res) throws 
PortletE
xception, IOException {
RequestContext rc = (RequestContext) 
req.getAttribute(PortalReservedParameters.R
EQUEST_CONTEXT_ATTRIBUTE);
String ip=rc.getRequest().getRemoteAddr();
}

 protected void doView(RenderRequest req, RenderResponse res)
      throws PortletException, IOException {
        RequestContext rc = (RequestContext) 
req.getAttribute(PortalReservedPara
meters.REQUEST_CONTEXT_ATTRIBUTE);
        String ip=rc.getRequest().getRemoteAddr();
}

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org