tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Cruz" <bc...@norvax.com>
Subject RE: How to make tomcat read .asp extension as .jsp file
Date Tue, 12 Jun 2001 17:37:19 GMT
Thanks for all the information, it was helpful from everyone.  I ended up
just using an old java program I had and made some changes to it so that it
would check a directory and all sub directories for an .asp ending, and
rename the file if that was the case.

Brandon

-----Original Message-----
From: Robert Slifka [mailto:RSlifka@rim.net]
Sent: Tuesday, June 12, 2001 11:48 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: How to make tomcat read .asp extension as .jsp file


If you use Apache, map .asp to jserv-servlet or whatever the handler is for
it.

- r

> -----Original Message-----
> From: Swart, James (Jim) ** CTR ** [mailto:swartj@agere.com]
> Sent: June 12, 2001 12:22 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: RE: How to make tomcat read .asp extension as .jsp file
>
>
> are they all in the same dir or different subdirs?
> you can use the xcopy command (or you might have to put
> xcopy32) in windows
> to do this all in one shot!
>
> ie if they are in say, c:\yourmomma\rules and there are 100
> subdirs there
> you can do it like this:
>
> xcopy c:\yourmomma\rules\*.asp c:\yourmomma\rules\*.jsp /s /v (this
> basically makes copies of all your asp files as jsp in all subdirs).
> Then,  run windows search for *.asp files in
> c:\yourmomma\rules, highlight
> them all and hit delete.  *BAM*.
>
> Jim Swart.
> Agere Systems Colorado Design Center
> Unix/NT/LAN/WAN/Voice SysAdmin
>
> -----Original Message-----
> From: Filip Hanik [mailto:mail@filip.net]
> Sent: Monday, June 11, 2001 5:10 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: How to make tomcat read .asp extension as .jsp file
>
>
> three ways
>
> 1. 250 files, that is nothing, why don't you just write a .bat (batch)
> script to do this for you?
> otherwise,
>
> 2. change the file WebXmlReader.java and add this line
> 	ctx.addServletMapping( "*.asp", "jsp");
>
> 3. in your web.xml file, I'm sure you can add in the lines
> 	<servlet-mapping>
>         <servlet-name>
>             jsp
>         </servlet-name>
>         <url-pattern>
>             *.asp
>         </url-pattern>
>     </servlet-mapping>
>
> but I haven't verified the last one (3.) so you may want to
> play around with
> it.
>
> Filip
>
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> filip@filip.net
> www.filip.net
>
> >-----Original Message-----
> >From: Brandon Cruz [mailto:bcruz@norvax.com]
> >Sent: Monday, June 11, 2001 3:57 PM
> >To: tomcat-user@jakarta.apache.org
> >Subject: How to make tomcat read .asp extension as .jsp file
> >
> >
> >I know this has been asked on here before, but I can't find
> it in the 4000+
> >messages I have.  Does anyone know of a way to make tomcat
> map any random
> >extension as a .jsp file.  For example, I have a bunch of
> .asp files that I
> >have changed all the code for, but don't want to have to go
> through the
> >tedious task of renaming 250 .asp files to .jsp.  Can I just
> set something
> >in server.xml or web.xml to read these files like they were .jsp's?
> >Thanks for any help!!!
> >
> >Brandon
> >
> >
>


Mime
View raw message