portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MURTHY GANDIKOTA <MGANDIK...@MEMBERSEDGELLC.COM>
Subject Re: Remote Address sans Rundata-- Jetspeed 2
Date Thu, 15 Nov 2007 19:15:11 GMT
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


Mime
View raw message