BBjspWebRequest::getServerName (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method returns the host-name of the server to which the request was sent. It is the value of the part before ":" in the Host header value, if any, or the resolved server name, or the server IP address.
Syntax
| 
                                                         Return Value  | 
                                                    
                                                         Method  | 
                                                
| 
                                                         String  | 
                                                    
                                                         getServerName()  | 
                                                
Parameters
None.
Return Value
a String containing the server name
Remarks
The example below shows getting the server name of the BBJSP Servlet.
Example
This example demonstrates how this works in a BBJSP web-page
| 
                                                         <html>  | 
                                                
This example demonstrates how this works in a BBJSP servlet
| 
                                                         class public MyServlet  |