tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Baringer <>
Subject Re: How to make tomcat read .asp extension as .jsp file
Date Tue, 12 Jun 2001 07:55:52 GMT
On Mon, Jun 11, 2001 at 06:18:55PM -0500, Brandon Cruz wrote:
> Filip,
> Thank you for the suggestions, I will continue to play around with it, but
> here is what I have come up with for those 3 solutions so far.  Guess I may
> have to suck it up and go in and change everything.
> 1) No knowledge of how to write a batch script that can do this...I could do
> it in java, but figured there must be an easier way.

(get cygwin) (this is all one line)
for i in `find . -name "*.asp" -type f`; do mv $i `echo $i | sed s/\.asp$/.jsp/`; done
> 2)This is going to be deployed on a server with quite a few other sites, so
> I would prefer to keep it local...hopefully I could set an alias or
> something inside the individual context in server.xml

everything in WEB-INf/web.xml is local to that app

> 3) I have tried that technique in the web.xml, but my changes don't seem to
> be working as long as I want to use .jsp extensions also...again, I still
> would like to keep it local.

again WEB-INF/web.xml is your friend

> Brandon

Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
	-Isonard Cohen

View raw message