• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to capture the server's name from the request?

 
Sean Gildea
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,

I was wondering if anyone was familiar with a method of retrieving the name of the host server from the request or session.

I need to display it on a JSP page so our testers know which server is running that build.

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the API javadocs for the HttpServletRequest class?
 
Sean Gildea
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it

request.getServerName()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic