RE: Processing .html files like JSPs
Thanks, this works perfectly! -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:27 PM To: Tomcat Users List Subject: Re: Processing .html files like JSPs The quick way (but there are other ways too) In $TOMCAT_HOME/conf/web.xml servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping ADD servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping -Tim [EMAIL PROTECTED] wrote: In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - 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: Processing .html files like JSPs
The quick way (but there are other ways too) In $TOMCAT_HOME/conf/web.xml servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping ADD servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping -Tim [EMAIL PROTECTED] wrote: In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Processing .html files like JSPs
Look for the line '!-- The mapping for the JSP servlet --' in your default web.xml and add this underneath: servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping A better solution of course would be to rename the files so that they have a .jsp extension... -chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: Processing .html files like JSPs In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - 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: Processing .html files like JSPs
It should have some setting in your web.xml to configure you context: exact syntax, I'm unsure. Look for context documentation. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 11:09 AM To: [EMAIL PROTECTED] Subject: Processing .html files like JSPs In the app I'm working on there's a number JSP files that actually have the extension .html. Is there a way to configure Tomcat to treat these files just as if they had the standard .jsp extension, or do I need to rely on Apache rewrite rules? I'm using Tomcat 4.1.27 on Linux. - 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]