Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display Server names  RSS feed

 
vijaya soft
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI!

In my application several servers are running.When a hit is made,I would like to know from which webserver i am getting the response.

Thanks
Vijaya.
 
Naveen K Garg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijay,

You can use the "req.getServerName()" method to get the name of the server in your servlet.

Thanks
Naveen
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!