cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Debugging Modular Database Actions...
Date Wed, 18 Feb 2004 08:53:20 GMT
I am struggling to get a simple database "add" performed
when using the  Modular Database Action (and, no, I do
not want to do this in flow or some other way ;-).  The log
files do not show any errors - the database connection works
OK for retrieving data (and I have checked the field names 
and types and so on...).

Any ideas on what to test or look for to get this working?



The sitemap entry looks like:

         <!--  attempt to process add/update database entry -->
         <map:match pattern="forms/add_legal">  

           <map:act type="mod-db-add">
             <map:parameter name="descriptor"
value="context://myapp/db-metadata.xml" />     
             <map:parameter name="table-set" value="legal" />    

             <!--  do not get here ! --> 
                <map:generate src="docs/ok.xml"/>     
                <map:transform src="styles/basic-page2html.xsl"/>
                <map:serialize />

            <!--  ALWAYS get here ! --> 
            <map:generate src="docs/fail.xml"/>     
            <map:transform src="styles/basic-page2html.xsl"/>
             <map:serialize />


The db-metadata.xml file is located in the 'root' directory ("myapp"

<?xml version="1.0"?>

<table name="legal" alias="legal">
    <key name="TriggerID" type="int"/>
    <value name="TriggerDesc" type="string"/> 

<table-set name="legal">
  <table name="legal" />


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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

View raw message