tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Wichman <h...@trimm.nl>
Subject Re: Including port no in req.getServerName() output.
Date Tue, 12 Aug 2003 11:08:29 GMT
Hi,
yes, ultraedit is perfect for search and replace, but there are lots of 
other as well, textedit,
search&replace.

See http://www.ultraedit.com/downloads/index.html for example. It is 
shareware, I do not know if this version allows
search and replace (or has a maximum number of replacals), you should have 
to try for yourself.
Otherwise in tucows or some site like that you should be able to find one.

Another option is write a recursive fileiterator in java and a replace 
function and you're home free as well, is bound to be quicker than doing it 
by hand.

Anywayz, as long as you backup all files before running such an action ;-), 
you are free to experiment.

greetz
Hans

At 04:20 PM 8/12/2003 +0530, Antony paul wrote:
>Any tool ? I am working on windows and dont know PERL or scripting language.
>
>regards
>Antony Paul
>
>----- Original Message -----
>From: "Hans Wichman" <hans@trimm.nl>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>; "Tomcat Users
>List" <tomcat-user@jakarta.apache.org>
>Sent: Tuesday, August 12, 2003 4:04 PM
>Subject: Re: Including port no in req.getServerName() output.
>
>
> > Hi,
> > how about ultraedit search and replace,
> > http:// req.getServerName() by nothing....
> >
> > just an idea...
> >
> > greetz
> > Hans
> >
> > At 03:59 PM 8/12/2003 +0530, Antony paul wrote:
> >
> > >80% of the pages are completed(about 150 pages) so changing these pages
>is a
> > >tedious job.
> > >
> > >Antony Paul
> > >----- Original Message -----
> > >From: "Bodycombe, Andrew" <andrew.bodycombe@siemens.com>
> > >To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> > >Sent: Tuesday, August 12, 2003 3:41 PM
> > >Subject: RE: Including port no in req.getServerName() output.
> > >
> > >
> > > > It may be better to use relative URLs (like '/shop/category.jsp')
>instead
> > >of
> > > > the complete URL.
> > > > This removes the need to hard-code your server name and port.
> > > >
> > > > Alternatively, you could use
> > > >
> >
> >http://<%=request.getServerName()+":"+request.getServerPort()%>/shop/catego
>r
> > > > y.jsp
> > > >
> > > > Note you may run into problems if you use SSL, because the http: will
>need
> > > > to change to https:
> > > >
> > > > Hope this helps,
> > > > Andy
> > > >
> > > > -----Original Message-----
> > > > From: Antony paul [mailto:antonypaul24@hotmail.com]
> > > > Sent: 12 August 2003 11:07
> > > > To: tomcat mail list
> > > > Subject: 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.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message