tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: .asp and tomcat 5.5.9
Date Thu, 12 May 2005 14:02:39 GMT
You could just add this to your web.xml file in the proper place:

<servlet-mapping>
  <servlet-name>jsp</servlet-name>
  <url-pattern>*.asp</url-pattern>
</servlet-mapping>

--David

Trung Nguyen wrote:

>Peter,
>
>Thanks again.  What I'm trying to do is write code in Java and name it .asp because our
client wanted to have .asp instead of .jsp
>
>
>
>-----Original Message-----
>From: Peter Crowther [mailto:Peter.Crowther@melandra.com]
>Sent: Thursday, May 12, 2005 9:41 AM
>To: Tomcat Users List
>Subject: RE: .asp and tomcat 5.5.9
>
>
>  
>
>>From: Trung Nguyen [mailto:trung.nguyen@globalcompliance.com] 
>>Is there a way to configure tomcat 5.5.9 to support .asp extension?
>>    
>>
>
>If you mean 'serve static content that has a .asp suffix as MIME type
>x/y', yes.  Configure a MIME-type in Tomcat's conf/web.xml (or your
>webapp's web.xml) and you're done.
>
>If you mean 'process Microsoft-style Active Server Pages in the same way
>that IIS does', no.  The main product I know that could do that on
>non-Microsoft platforms is http://www.sun.com/software/chilisoft/ - Mono
>does similar for ASP.Net.  It might be barely possible to use Tomcat to
>retrieve pages from such a back-end system and forward them to the
>client browser, but I suspect it would be a poor engineering solution.
>
>What are you trying to do?
>
>		- Peter
>
>---------------------------------------------------------------------
>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
>
>  
>


-- 
=======================================
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture & Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



---------------------------------------------------------------------
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