tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos López M." <clo...@grupounika.com.mx>
Subject RE: Servlet problem
Date Fri, 23 Feb 2001 22:31:20 GMT
Hey tanks you all, everithing work just fine. And I manage to upload the
file.

-----Mensaje original-----
De: Kyle Burke [mailto:burkeman@mediaone.net]
Enviado el: Viernes, 23 de Febrero de 2001 04:03 p.m.
Para: tomcat-user@jakarta.apache.org
Asunto: RE: Servlet problem


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



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org



Mime
View raw message