Lionel Crine wrote:

The code is complicated because, at some moment we have to check which content-type was coming and what to do.
I don't know if it was a good choice but it worked.


now, it's useless.

So I did what you said and here is a new example :

try {

Object oXml = this.request.get("moduleXml");
Part pod = (Part) oXml;
InputStream is = pod.getInputStream();

] catch ..........


The getAttribute method returns null.


Hello Lionel,

two questions:

1.) Did you set the param "enable-uploads" to "true" in $COCOON_HOME/WEB-INF/web.xml?
2.) Did you send your form with "enctype="multipart/form-data" and "method='POST'"?


... then getAttribute() should not return null. If so, please give us some code, so I will see to help you.

Regards
Stephan


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to