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:[EMAIL PROTECTED]
>Sent: Thursday, May 12, 2005 9:41 AM
>To: Tomcat Users List
>Subject: RE: .asp and tomcat 5.5.9
>
>
>  
>
>>From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
>>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


-- 
=======================================
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to