ServerName property: Request class

Description

This property returns the host name of the server on which the servlet is running. This property returns a string value.

This property is read-only.

Example

For the URL

http://serverx/servlets/psp/ps84/eprocurement/fdm/s/WEBLIB. . . .

the ServerName property returns:

serverx