Hi,


I have a stupid question:

        What do I have to do to make JSP code work in *.htm files.
        I would like to automatically add an authorization prefix to
        any *.html and *.htm page of my old web. The java program works
        fine but the <% ....authorize this code ....%> does not work.
        
        I use IIS and Tomcat 3.1. 
        
Can anyone help ??

Ciao
        Matze

My uriworkermap

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12
/*.jsp=ajp12
/*.htm=ajp12


My web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

 <web-app>
         <servlet>
                <servlet-class>org.apache.jasper.runtime.JspServlet</servlet-class>
                <servlet-name>htmtojsp</servlet-name>
         </servlet>
        
         <servlet>
                <servlet-class>UploadManager.HttpFileReceiver</servlet-class>
                <servlet-name>upload</servlet-name>
         </servlet>
        
        
        <servlet-mapping>
                <servlet-name>htmtojsp</servlet-name>
            <url-pattern>*.htm</url-pattern>
        </servlet-mapping>
</web-app>


/*
    Dipl.-Inform. Matthias Barmeier        Tel: +49 (0)30 79 70 72 87
    bit-side GmbH                          Fax: +49 (0)30 79 70 72 88
    Salzufer 14a Aufgang D                 Email: [EMAIL PROTECTED]
    10587 Berlin                           WWW: <http://www.bit-side.com>
*/


 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to