cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Wielgus <lis...@o2.pl>
Subject Form validation problem
Date Mon, 12 Jan 2004 10:03:17 GMT
Hello,

I'm trying to validate a form for uploading files using the form
validation action. Normally it works correctly, but if I use the
parameter 'enctype = "multipart/formdata"' in the form definition
(and I have to use it as I want to upload the file) every time it
looks like the input were invalid. What's the problem? Or maybe is
it a bug?

My sitemap fragment looks like this:

<map:pipeline>
<map:match pattern="valid-test">
<map:act type="form-validator">
<map:parameter name="descriptor"
value="resources/descriptors/uploaddescriptor.xml"/>
<map:parameter name="validate-set" value="transformation"/>
<map:generate type="serverpages" src="validtest/ok.xsp"/>
<map:transform src="validtest/test.xsl"/>
<map:serialize/>
</map:act>
<map:generate type="serverpages" src="validtest/fail.xsp"/>
<map:transform src="validtest/test.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message