Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

LocalHost in request.serverName()

 
Nitin Raodeo
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have my Web application on Tomcat server(without Apache).
The IP is mapped to some DSN.
In my JSP when i fetch the name of the server(request.serverName() )
it is displayed it as LocalHost and not the server name.
Does any configuration need to be done?
Thanks in Advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Nitin, please do not cross-post the same question to multiple forums. Any discussion of this topic should happen here.
bear
 
    Bookmark Topic Watch Topic
  • New Topic