Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     ServletRequest elements available?
Go
New
Search
Notify
Tools
Reply
  
ServletRequest elements available?
 Login/Join
 
Gold member
posted
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
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Reply With QuoteReport This Post
<WFUser>
posted
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.
 
Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     ServletRequest elements available?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.