I get this with both Tomcat 3.2.1 and 3.2.2.
I'm using JDK 1.2.2.
No error message appears.  I just get the full text of the JSP file as if it were a 
text file (i.e. NO preprocessing at all) when I access /basic/login.tem

Here are excerpts from the stderr.log (I've got Tomcat setup as a 2000 service on my 
development machine).  The log shows two contexts: 1) /basic where no special JSP 
setup has been made, but the changes to the DEFAULT web.xml have been made.  2) 
/teacherapplication where the exact same <servlet-mapping> tag in the default web.xml 
was also placed in the APPLICATION's web.xml.

Log excerpt # 1)
2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map /basic/*.jsp Ct 
(jsp(org.apache.jasper.servlet.JspServlet/null) ) 

Log excerpt # 2)
2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map 
/teacherapplication/*.jsp Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) 
2001-06-15 12:57:21 - ContextManager: SimpleMapper1: SM: extension map 
/teacherapplication/*.tem Ct (jsp(org.apache.jasper.servlet.JspServlet/null) ) 

The log seems to show that there isn't an extension mapping being created for all 
contexts - just the one where I explicitly told it to in the APPLICATION web.xml.  
That's why I'm wondering if Tomcat is *supposed* to create the extension mapping based 
on the default web.xml, or if it's only supposed to use the DEFAULT provided with 
Tomcat without changes (i.e. is this a bug or a feature).

Thanks,

Tim Shadel


>>> "Luba Powell" <[EMAIL PROTECTED]> 06/15/01 02:06PM >>>
What is the error message you are getting?
----- Original Message -----
From: "cathy moffatt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 4:09 PM
Subject: RE: Default web.xml


> After much difficulty I did manage to get Tomcat3.2.2 to run servlets &
jsp,
> but only with JDK1.3.1 not JDK1.3.0_02
> I suspect an incompatibility problem
>
> -----Original Message-----
> From: Michael Wentzel [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, June 15, 2001 3:05 PM
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Default web.xml
>
>
> What version of tomcat are you running?
>
>
> ---
> Michael Wentzel
> Software Developer
> Software As We Think - http://www.aswethink.com 
>

>>> Timothy Shadel >>>
I have a quick question about how the default web.xml found in the conf directory is 
supposed to act.  The Tomcat User's guide says it acts as a default web.xml for all 
web applications.  I tried to add the following to it:

    <servlet-mapping>  <!-- This was there by default -->
        <servlet-name>
            jsp
        </servlet-name>
        <url-pattern>
            *.jsp
        </url-pattern>
    </servlet-mapping>
    <servlet-mapping>  <!-- I added this -->
        <servlet-name>
            jsp
        </servlet-name>
        <url-pattern>
            *.tem
        </url-pattern>
    </servlet-mapping>

because we wanted to logically separate our JSP files used as templates from those 
providing major content.  However, accessing a valid JSP file that's been renamed with 
a .tem extension returns only the actual file contents instead of being translated as 
a JSP.  The same <servlet-mapping> tag works perfectly in an application's web.xml.  
Am I supposed to be able to modify the web.xml in the conf directory and have it 
affect all applications, or is it only supposed to work with the one that comes with 
Tomcat by default?

Thanks,

Tim Shadel


Reply via email to