cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Bertram" <bert...@n-bis.de>
Subject RE: The dbAdd action not working
Date Thu, 05 Sep 2002 14:47:34 GMT
Hi Antonio,

You must also set the for-descriptor for form validation

<map:parameter name="form-descriptor" value="docs/cat-form.xml"/>

The descriptor is only for the action dbAdd

Klaus

> -----Original Message-----
> From: Antonio Gallardo Rivera [mailto:agallardo@agsoftware.dnsalias.com]
> Sent: Thursday, September 05, 2002 4:37 PM
> To: cocoon-users@xml.apache.org
> Subject: The dbAdd action not working
> 
> 
> Please help me:
> 
> I am using Cocoon 2.1:
> 
> In the sitemap I have:
> 
> <map:action-set name="process">
> 	<map:act action="Crear Categoria" type="form-validator">
>  	       <map:parameter name="validate-set" value="add"/>
>   	      <map:act type="dbAdd"/>
>    	</map:act>
> <map:action-set>
> 
> The actions are declared:
> 
> <map:action logger="sitemap.action.dbAdd"
> 	name="dbAdd"
> <map:action logger="sitemap.action.form-validator"
> 	name="form-validator"
> 	src="org.apache.cocoon.acting.FormValidatorAction"/>
> 
> The match in the pipeline is:
> 
>       <map:match pattern="cat-*.html">
>         <map:act type="auth-protect">
> 		    <map:parameter name="handler" value="agshandler"/>
> 
>             <map:match pattern="cat-*.html">
>                 <map:act set="process">
>                     <map:parameter name="descriptor"
> 			value="docs/cat-form.xml"/>

<map:parameter name="form-descriptor" value="docs/cat-form.xml"/>

>                     <!-- if success -->
>                     <map:generate src="docs/cat-confirm.xsp"
> 			type="serverpages"/>
>                     <map:transform src="stylesheets/agssa.xsl"/>
>                     <map:serialize/>
>                 </map:act> <!-- if fail -->
>                 <map:generate src="docs/cat-{1}.xsp" type="serverpages"/>
>                 <map:transform src="stylesheets/agssa.xsl"/>
>                 <map:serialize/>
>             </map:match>
>         </map:act>
>         <map:transform src="stylesheets/agssa.xsl"/>
>         <map:serialize/>
>       </map:match>
> 
> The form-validator is working well, but the data are not going to the 
> database. I saw in the logs and there was not any logger activity 
> to dbAdd.
> 
> What I am doing wrong?
> 
> Antonio Gallardo
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message