Jump to content

[Solved] Why Does My Deployed Servlet Return Wrong Server Name, Port And Context Path


vaninf

Recommended Posts

My servlet is deployed at http://vaninf.heliohost.org/2/url.jsp

It returns 3 wrong parameters:

 

request.getServerName() = 127.0.0.1

request.getServerPort() = 8080

request.getContextPath() = /vaninf_2

 

The expected correct data should be:

 

request.getServerName() = vaninf.heliohost.org

request.getServerPort() = 80

request.getContextPath() = /2

 

Can you support people tell me why, and how to fix it?

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...