Re: request.getServerPort() returns wrong port when using tcpmon

2007-02-01 Thread Alessandro Vernet
Alessandro Vernet wrote: When the request I send to Tomcat go through tcpmon, calls to httpServletRequest.getServerPort() in my code always return 80. This is incorrect, as Tomcat is listening in fact to port 8080. I don't have this problem when request don't do through tcpmon. I found

request.getServerPort() returns wrong port when using tcpmon

2007-01-31 Thread Alessandro Vernet
When the request I send to Tomcat go through tcpmon, calls to httpServletRequest.getServerPort() in my code always return 80. This is incorrect, as Tomcat is listening in fact to port 8080. I don't have this problem when request don't do through tcpmon. I am having this issue with Tomcat 5.5.16,

Context, c:import, and request URI

2006-07-12 Thread Alessandro Vernet
I have two war deployed on Tomcat: war1 and war2. When a request comes from /war1/path1, a JSP in war1 runs and with the JSTL c:import [1] imports something from war2: c:import context=war2 url=/url2/ This works because crossContext [2] is set to true in the Tomcat configuration. Now the