You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ka...@pass-consulting.com on 2000/11/14 10:36:06 UTC
HELP!! Servlets
Hi,
I have a html file under the path http://Localhost/upload which is calling a
servlet to upload a document. This is working fine. But when I move the html
file and the servlet to my http://Localhost/ROOT directory I get the error
"Not able to open the following site
http://localhost:8080/Root/servlet/requestupload. I added the servlet to the
web.xml file in the ROOT/Web-inf dir. as you can see in the attached file.
Can someone please help me?
<<web.xml>>
HTML-file:
<HTML>
<p>Demo MultipartRequest Upload Servlet</p>
<FORM ACTION="http://localhost:8080/ROOT/servlet/requestupload" METHOD=POST
ENCTYPE="multipart/form-data">
What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
Which file to upload? <INPUT TYPE=FILE NAME=file1> <BR>
Which file to upload? <INPUT TYPE=FILE NAME=file2> <BR>
Which file to upload? <INPUT TYPE=FILE NAME=file3> <BR>
<INPUT TYPE=SUBMIT>
</FORM>
</HTML>