request.getServerName different values on similar setups

S

Shabs

Hi

I have a controller servlet (on env1-server1) which redirect to a jsp
on a different server (env1-server2). When i do a
request.getServerName() from the called jsp i get the jsp server name
(ie. env1-server2).

I have a similar setup of these 2 servers for another development
environment - env2-server1 for controller servlet and env2-server2 for
jsp. But here when i do a request.getServerName() from the called jsp
i get the controller servers name (ie. env2-server1)

I would appreciate if someone can tell me how this could happen, since
i think that the value i get from request.getServerName() in the 2nd
setup should be env2-server2.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top