You can use getCurrentRequest().getRemoteAddr() in a page.
FYI, the request event object that is passed to a SilverStream servlet is an
com.sssw.srv.busobj.AgoHttpRequestEvent
The implementation/inheritance tree looks like this:
javax.servlet.ServletRequest
is extended by
javax.servlet.http.HttpServletRequest
is extended by
com.sssw.shr.http.AgiHttpServletRequest
is implemented by
com.sssw.srv.busobj.AgoHttpRequestEvent
So, you can use methods in any/all of these objects.
Some methods are getParameter(String), getParameterNames(),
getRemoteAddr(), getRemoteHost(), getServerName(), getServerPort(),
getCookies(), getHeader(String), getRemoteUser()
To get a reference to this object, use getCurrentRequest() in your page.
This returns an AgiHttpServletRequest reference, so to use any methods in
AgoHttpRequestEvent (see
D:\SilverStream25\docs\help\reference\AgoHttpRequestEvent.main.html in the
docs) you must cast.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.