cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Problem getting parameters with POST method, multipart/form-data, and RequestParamAction
Date Thu, 06 Mar 2003 10:14:05 GMT
    Hi everybody !

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"
  <input type="hidden" name="actiontype" value="main"/>

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 ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message