You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by hunkpapa <hu...@gmx.de> on 2001/04/27 00:16:53 UTC

MultipartIterator

Hi
i've try to use the MultipartIterator, but it doesn't work.

In the JSP is:
...
<form action="testUpload.do" enctype="multipart/form-data"
method="post">
...
In the Servlet
...
          MultipartIterator iterator = new MultipartIterator(request);
          MultipartElement element;
          while ((element = iterator.getNextElement()) != null)
          {
               servlet.log("Name " +element.getName());
               servlet.log("FileName " +element.getFileName());
               servlet.log("ContentType " +element.getContentType());
               servlet.log("Data " +element.getData());
          }
...

The elemt is allways = null
what is the cause ?
I
Thx
Hunky