You're editing the wrong web.xml file first of all.  The one you're changing
is used to configure your webapps.

You need to edit the <%=your drive letter%>:\<%=your tomcat
folder%>\webapps\ROOT\WEB-INF\web.xml file.

Your code:
<servlet-class>
        UploadTest.java // ".java" is BAD
</servlet-class>

The right code added to the <%=your drive-letter%>:\<%=your tomcat
folder%>\webapps\ROOT\WEB-INF\web.xml file:

<servlet-mapping>
        <servlet-name>UploadTest</servlet-name>
        <url-pattern><%=add whatever alias you want to use%></url-pattern>
</servlet-mapping>



-----Original Message-----
From: Carlos López M. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:38 PM
To: [EMAIL PROTECTED]
Subject: Servlet problem


Hi i want to use oreilli upload class and It just doens work

Here is the diferent code, could somebody tell if something is wrong

Directori

/webapps/
          /serv/uploadtest.html
        /servlet/UploadTest.java

web.xml, where does the UploadTest.java supose to be??

    <servlet>
        <servlet-name>
            UploadTest
        </servlet-name>
        <servlet-class>
            UploadTest.java
        </servlet-class>
                <load-on-startup>
           4
                </load-on-startup>
    </servlet>

        <servlet-mapping>
        <servlet-name>
            UploadTest
        </servlet-name>
        <url-pattern>
            /servlet/UploadTest
        </url-pattern>
    </servlet-mapping>

Html Code

<FORM METHOD=POST ENCTYPE=multipart/form-data ACTION="/servlet/UploadTest">

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



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

Reply via email to