On Thu, Oct 18, 2001 at 10:53:48AM +1000, Stuart Allen wrote:
> I have recently installed Tomcat 4.0.1 and mod_webapp and I am trying to 
> get an application working that was previously running under Tomcat 3.2. 
> The problem is that the *.html pages contain <jsp:include> tags that are 
> not being parsed and processed.

Could you elaborate on that? What exactly is your tag, and is there any error
message?

With Tomcat 4.0 and 4.0.1, <jsp:include>'ing *any* file with an unknown MIME
type will trigger an IllegalStateException. I encountered this when migrating
3.2 apps to 4.0, with lines like:

<jsp:include page="foo.ssi" flush="true"/>
<jsp:include page="foo.htm" flush="true"/>
<jsp:include page="foo.js" flush="true"/>
<jsp:include page="foo.css" flush="true"/>

The fix is to declare the MIME types of those file types in your web.xml.

Tomcat 4.0.1 has *.js and *.css MIME types declared in it's global web.xml, so
the problem is less evident.

FAQ on this issue at:
http://www.jguru.com/forums/view.jsp?EID=516840

> I have tried changing the mappings in web.xml so that the default servlet is
> jsp, but the tags still seem to be ignored. Previously I had added a line
> like: JkMount /*.html ajp13 in the Apache config, but obviously this does not
> apply to mod_webapp. Any clues would be greatly appreciated.

Does it work with Tomcat standalone (port 8080)? If it does, then all the above
is not your problem.

--Jeff

> Regards,
> Stuart

Reply via email to