tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Burke" <burke...@mediaone.net>
Subject RE: Servlet problem
Date Fri, 23 Feb 2001 22:03:11 GMT
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:clopez@grupounika.com.mx]
Sent: Friday, February 23, 2001 4:38 PM
To: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org



Mime
View raw message