aspose file tools
The moose likes JSP and the fly likes How to capture the server's name from the request? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to capture the server Watch "How to capture the server New topic
Author

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

Sean Gildea
Ranch Hand

Joined: Jul 01, 2004
Posts: 81
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!


SCJD, SCBCD, SCJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Have you looked at the API javadocs for the HttpServletRequest class?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Sean Gildea
Ranch Hand

Joined: Jul 01, 2004
Posts: 81
got it

request.getServerName()
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to capture the server's name from the request?
 
Similar Threads
XML-RPC server deployment
how to get servername from a request but not the cluster name?
Generate HTTP PUT request
File Download
How to request send to server or not