cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flutina.Zhu <>
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"/>

So in the sitemap it as follow:

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

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?


View raw message