Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Including port no in req.getServerName() output.

Antony

2003-08-12


Hello,
  Is it possible to include the port no in the output of a call to
request.getServerName(). I have written all JSP and Servlets which dont use
the port no. The call is like this
http://<%=request.getServerName()%>/shop/category.jsp. Now there is a need
to change the port no of Tomcat. Is there any other way to change the JSP
and servlets to include the port no.

regards
Antony Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.