.asp and tomcat 5.5.9
Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .asp and tomcat 5.5.9
Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org Subject: .asp and tomcat 5.5.9 Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - 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]
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]
RE: .asp and tomcat 5.5.9
Thank you very much for the fast reply. What we're trying to do here is one of our client requested to show .asp instead of .jsp I know this is crazy, but I guess they're Microsoft company :) Of course all our files end with .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]
Re: .asp and tomcat 5.5.9
You can map any .extension to a servlet. It can be .asp, .php, .do, .html or .java. Now, that DOES NOT mean that Tomcat will render an actual .asp page written in VBScript. It just means that you can have people think that your website is written in .asp but it is really java. Charlie Arup Vidyerthy said the following on 5/12/2005 9:44 AM: Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org Subject: .asp and tomcat 5.5.9 Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .asp and tomcat 5.5.9
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]
RE: .asp and tomcat 5.5.9
Charlie, Thank you very much for the reply. This is what we want, we just want people think that the site is written in .asp but it is really java. How do I mapy .extension to servlet? Thanks, Trung -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 9:55 AM To: Tomcat Users List Subject: Re: .asp and tomcat 5.5.9 You can map any .extension to a servlet. It can be .asp, .php, .do, .html or .java. Now, that DOES NOT mean that Tomcat will render an actual .asp page written in VBScript. It just means that you can have people think that your website is written in .asp but it is really java. Charlie Arup Vidyerthy said the following on 5/12/2005 9:44 AM: Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org Subject: .asp and tomcat 5.5.9 Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - 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] - 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]
RE: .asp and tomcat 5.5.9
From: Trung Nguyen [mailto:[EMAIL PROTECTED] What we're trying to do here is one of our client requested to show .asp instead of .jsp I know this is crazy, but I guess they're Microsoft company :) Of course all our files end with .jsp Ah! OK, so what I think you want is to continue writing your pages as Java Server Pages, but to rename them filename.asp instead of filename.jsp, and for Tomcat to process filename.asp as a Java Server Page? I.e. this is purely eye candy for any user who reads too much into a 'asp' suffix. Am I correct here? If so, look in Tomcat's conf/web.xml, find the servlet-mapping that maps *.jsp to the JSP servlet, and add a mapping for *.asp. Then try it. If I'm not correct and your client genuinely wants to run MS-style ASPs, buy and run a Windows server! The TCO will almost certainly be lower than you putting the effort into finding an alternative solution, then maintaining that solution. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .asp and tomcat 5.5.9
You could just add this to your web.xml file in the proper place: servlet-mapping servlet-namejsp/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]
Re: .asp and tomcat 5.5.9
Trung Nguyen wrote: Charlie, Thank you very much for the reply. This is what we want, we just want people think that the site is written in .asp but it is really java. How do I mapy .extension to servlet? You could likely have the files names .jsp and have a filter that forwards all *.asp requests to *.jsp counterparts. That seems cleanest in that you don't have to retrain IDE's or anything else to treate .asp as .jsp. -- Jess Holle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .asp and tomcat 5.5.9
Add this to you web.xml servlet-mapping servlet-namejsp/servlet-name url-pattern*.asp/url-pattern /servlet-mapping This assumes you name all your jsp files with a file extension of asp. Otherwise you would need a filter which would trap *.asp and forward to the filename name with the jsp extension. -Tim Trung Nguyen wrote: Charlie, Thank you very much for the reply. This is what we want, we just want people think that the site is written in .asp but it is really java. How do I mapy .extension to servlet? Thanks, Trung -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 9:55 AM To: Tomcat Users List Subject: Re: .asp and tomcat 5.5.9 You can map any .extension to a servlet. It can be .asp, .php, .do, .html or .java. Now, that DOES NOT mean that Tomcat will render an actual .asp page written in VBScript. It just means that you can have people think that your website is written in .asp but it is really java. Charlie Arup Vidyerthy said the following on 5/12/2005 9:44 AM: Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org Subject: .asp and tomcat 5.5.9 Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .asp and tomcat 5.5.9
Thanks all of you. I did create a simple context and named all the files with *.asp instead of *.jsp and mapped .asp to servlet. It worked. thanks again, Trung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .asp and tomcat 5.5.9
From: Trung Nguyen [EMAIL PROTECTED] Sent: Thursday, May 12, 2005 6:56 AM 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 :-) Well that certainly can meet the letter of the request, if not the spirit! Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]