Focal Point
ServletRequest elements available?

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7681008331

October 22, 2004, 08:29 PM
jbmuir
ServletRequest elements available?
Hi All,

Just wondering if one can access the following elements of an HTTP request from within WebFocus. All three items listed below are available in an HttpServletRequest, so they could theoretically be available to a focexec via the WFServlet.

SERVER_NAME - The host name of the server that received the request.
SERVER_PORT - The port number on which the request was received.
REMOTE_ADDR - The IP address of the client that sent the request.

If these are available, what are the amper variables called?
-James
October 23, 2004, 02:03 AM
<WFUser>
Place the following code in your /client5x/etc/site.wfs file.

<SET>REMOTE_ADDR(pass)
<SET>SERVER_NAME(pass)
<SET>SERVER_PORT(pass)

Recycle or app server or reload the web app. The variables will then always be available to your fexes as &variables (&REMOTE_ADDR, &SERVER_NAME, &SERVER_PORT)

The synatx will be different if you're running an old release.