cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malte Vahlenkamp" <>
Subject Re: DatabaseAction
Date Fri, 08 Feb 2002 10:29:16 GMT
First of all thanks for your help.

Maybe I got something wrong, but this still doesn't work out for me. now I have tried the
following mapping but the behavior is the same: Insert works well for the first table but
fails for the second table due to a null value in projectid.

-------------------------------------------------- Mapping ------------------------------------------
<table name="PROJECTS">
      		<key param="ProjectId" dbcol="projectid" type="int" mode="manual"/>
      <value param="ProjectName" dbcol="projectname" type="string"/>
      <value param="UserId" dbcol="userid" type="string"/>
  <table name="USERPROJECTS">	    	      		    
    	<key param="ProjectId" request-attribute-name="org.apache.cocoon.acting.AbstractDatabaseAction:ProjectId"
dbcol="projectid" type="int" mode="request-attribute"/>
    	<value param="UserId" dbcol="userid" type="int"/>

Any comments are appreciated.

Thanks for your time


>AFAIK Database Action sets request attributes with the following
>naming scheme


>so you'd need to read from
>org.apache.cocoon.acting.AbstractDatabaseAction:ProjectId and hope
>that there's no request parameter of that name because it will have

>Although still not prime time (helper handling needs complete redo)
>you might want to check out the ModularDatabaseActions from the
>scratchpad directory. I wouldn't advise using them for mission
>critical work right now because they will change a bit before they
>will migrate to the main trunk but it might still be worth a look.
>Note that their descriptor format differs from the above.

>BTW: one closing tag </table> seems to be misplaced above.

>	Chris.

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

View raw message