@InjectObject("service-property:tapestry.globals.HttpServletRequest:remoteAddr")
public abstract String getRemoteAddr()
or
@InjectObject("service:tapestry.globals.HttpServletRequest")
public abstract HttpServletRequest getServletRequest();
and then do whatever with the HttpServletRequest
best regards.
Raul Raja.
Lindsay Steele wrote:
getRequestCycle().getRequestContext().getRequest().getRemoteAddr();
works for me - but throws deprecation warnings. Happy to see if anyone
suggests something better.
Adam Zimowski wrote:
Mornin'
I need to obtain IP address from the requester of the page. With
Servlet API I'd use HttpServletRequest getRemoteAddr().
I checked WebRequest interface in Tapestry and do not see the
equivalent. Anyone knows how to get this information?
Thank You
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]