You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antony paul <an...@hotmail.com> on 2003/08/12 12:06:31 UTC

Including port no in req.getServerName() output.

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.