Hello,
I write a web application with JSPs (running at tomcat-server). My problem 
occours with uploadingfiles.

At the jsp-Page I defined this HTML-FORM (browser: Mozilla Firefox):

<h1>Hochladen einer Datei</h1>
        
<form action=<%= request.getRequestURL()%> method="post" 
ENCTYPE='multipart/form-data'>
        Datei: <input type="file" size="50" name="datei" maxlength="10000" 
accept="text/*"/><br/>
        <input type="submit" name="action" value="upload file" />
</form>

Now I try to parse the Multipart-Message:
if (FileUpload.isMultipartContent(request)) {
        try {
                // ENCTYPE='multipart/form-data' Daten rauslesen!!!
                FileItemFactory factory = new DiskFileItemFactory();
                ServletFileUpload upl = new ServletFileUpload(factory);
                java.util.List items = upl.parseRequest(request);
                .........

At the last line (java.util.List items ....) the error accurs. But I dont 
understand why ...

I hope someone can help me.

tia

Oli

PS:
I think I did everything in that way like at 
http://jakarta.apache.org/commons/fileupload/using.html descibed.

Attachment: pgpDDYvy8uj4T.pgp
Description: PGP signature

Reply via email to