cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flutina.Zhu <flut...@gmail.com>
Subject How to use stream generator to get multipart/form-data POST value
Date Thu, 13 Sep 2007 10:19:06 GMT
hi, all

I met a problem with stream generator.

I submit a form as

<form id="uploadForm" dojoAttachPoint="uploadFormNode" method="post"
enctype="multipart/form-data" action="upload.xml">
   ...
   <input name="target" id="target" name="target" type="file"/>
   ...
</form>

So in the sitemap it as follow:

      <map:generate type="stream">
          <map:parameter name="form-name" value="target"/>
          <map:parameter name="defaultContentType"
value="multipart/form-data"/>
        </map:generate>

but I get the error like :

Exception in StreamGenerator.generate(): java.lang.NullPointerException



So what's wrong with my code? the "target" is a well-format xml file.

Anybody can help me?



-flutina

Mime
View raw message