Science, asked by Abid1395, 1 year ago

How to get the server information in a servlet?

Answers

Answered by gourab2717guha
0

These are the four methods that a servlet can use to get information about its server:  

1) public String ServletRequest.getServerName()

2) public String ServletRequest.getServerPort()

3) public String ServletContext.getServerInfo()

4) public String ServletRequest.getAttributes(String name)

Hope u will find these helpful. Thank u. Mark me as brainliest if u wish to.

Similar questions