Hi!
I'm running Tomcat 3.2.1 on Redhat Linux 6.2. I've got it properly
configured to run with Apache (1.3.12). I've declared the following Context
in conf/server.xml:
<Context path=""
docBase="src/htdocs"
debug="0"
reloadable="false">
</Context>
I've declared the following in src/htdocs/WEB-INF/web.xml:
<web-app>
<servlet-mapping>
<servlet-name>
jsp
</servlet-name>
<url-pattern>
*.html
</url-pattern>
</servlet-mapping>
</web-app>
However, this causes my jsp pages ("disguised" in files with .html
extensions) to be served up as text/html -- they're NOT executed by the jsp
engine as expected/desired.
What's frustrating is I can map other extensions to the jsp engine (e.g.,
.zzz) -- heck, I can even map .htm and it's properly executed! Try as I
might, however, I simply can't get .html files to be properly executed by
the jsp engine. It's as if Tomcat has a hard-wired notion of how .html
files are to be handled.
Does ANYone have ANY idea how to do this? While I can work around it (e.g.,
rename all of my .html files to .jsp and use an Apache rewrite rule to
effectively map .html to .jsp), at this stage I'd really prefer not to.
Thanks in advance for any/all help.
-jwh