Hi !
I've recently upgraded from Cocoon 2.0.3 to Cocoon 2.0.4 and something doesn't work anymore. I've posted a message on cocoon-users but no one seems to be able to answer me. Here's a summary of the problem : I need to upload a file from an HTML form. I use the automatic upload provided by cocoon and the RequestParamAction to pass some parameters to my personal upload action. With cocoon 2.0.3, it works as I need. With cocoon 2.0.4, the behavior changes when method="GET" or "POST", and when the FILE input is filled or not ... really strange ... Michael ---------------------------------------------------------------------- Here are the messages I sent to the cocoon-users list. They give more details. Hi ! I've recently upgraded to Cocoon 2.0.4 and something doesn't work anymore : I now can't get a parameter value in the sitemap with the RequestParamAction and the POST method. Here's my configuration : Cocoon 2.0.4, JDK 1.3, Jetty, Jboss MultipartRequestFactoryImpl (defined in a web.xml file) Here's the way I use it : I want to get a parameter named 'actiontype' and defined in a form and I want to pass its value through the sitemap to an action. I've got a sitemap.xmap file : <!-- T e a c h e r W o r k {1} teacher work Id --> <map:match pattern="teacherWork/*.html"> <map:act type="request"> <map:parameter name="parameters" value="true"/> <map:act type="upload"> <!-- This parameter determines the action --> <map:parameter name="actiontype" value="{actiontype}"/> ... And I've got an HTML form (this page is dynamicly generated, here's an instance) : <form enctype="multipart/form-data" method="post" action="teacherWork/18.html"> <input type="hidden" name="actiontype" value="main"/> <input type="file" name="filename"/> ... And I've got a cocoon action of my own with a logger showing me the value of the parameter named 'actiontype'. With cocoon 2.0.3, everything works fine. With cocoon 2.0.4 : when method="post" the logs say actiontype = '' when method="get" the logs say actiontype = 'main' Everything would be alright in the best world if i didn't need to use the POST method (in order to have a FilePartFile object in the request). I'm sure the only difference is the version of cocoon that I'm using although there's still the possibility that I forgot some other change of mine. Would anybody help me ? Michael ---------------------------------------------------------------------- Hi ! I've recently posted an issue, and I've got new elements. My problem is : I can't pass a request parameter through the sitemap when I put a file path in an HTML FILE input and send it as POST multipart/form-data to a Cocoon 2.0.4 servlet. When I don't try to upload any file, I can pass the parameter value. When I try to upload a file, I can't get the parameter value anymore. Actually, it's as if there are no parameters in the request. Can somebody tell me if he can reproduce this problem on his environment ? Michael.