Yes, though when I wen to test your problem, I uses pjp as my extention.
Here is the relavant portion of my web.xml :

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
    <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.pjp</url-pattern>
    </servlet-mapping>
8< snip >8

</web-app>




-----Original Message-----
From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 8:43 PM
To: [EMAIL PROTECTED]
Subject: Re: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help


I tried everything accessing tomcat directly and even with Apache but it
doesn't work. Are you writting the same kind of stuff in web.xml

Thanks
Shelly

CPC Livelink Admin wrote:
>
> I just tried this on 3.2.1 and it worked for me. Are you accessing tomcat
> directly, or through IIS or Apache - If one of the latter, then you may
need
> to specify the mappings for the new extention through the redirector.
>
> -----Original Message-----
> From: Shelly Dhiman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 8:21 PM
> To: [EMAIL PROTECTED]
> Subject: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help
>
> Hi:
>
> I want to know in tomcat is it possible to treat any other file
> extension as jsp.
> I saved a .jsp file as .phj and i hace done the servlet mapping in
> web.xml
> like
> <servlet-mapping>
> <servlet-name>jsp</servlet-name>
> <url-pattern>*.phj</url-pattern>
> </servlet-mapping>
>
> BUt when i try to open that page using browser it shows me text of that
> phj file.
> Do i have to do a mime-mapping, if yes then how
>
> Any help on this would be appreciated.
>
> Thanks
> Shelly

Reply via email to