cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Hoechstaedter <>
Subject Update Database by DatabaseUpdateAction
Date Mon, 16 Jun 2008 09:05:55 GMT
Hi everybody,

I try an database update by request. As you maybe already can imagin: It 
doesn't work. The request url looks as follows:


It calls a pattern in my sitemap pieline. That works fine. Then I want 
cocoon to decode this url an write these data into my database. I 
already have an descriptor file where I added some attributes for my 
own. The file looks like:

<?xml version="1.0"?>
   <table name = "user" alias="Table User">
               Welcome to edit the user table
               Try description
         <key mode="form" param="sql:user_id" name="user_id" alias="User 
Id (PK)" access="h" delim="," type="int" autoincrement="true">
            <mode name="auto"  type="autoincr"/>
      <values deleteable = "true">
           <value access="r" delim="," mode="form" 
param="sql:login_name" name="login_name" alias="Login Name" 
           <value access="r" delim="," mode="form" 
param="sql:password_value" name="password_value" alias="PWD" 
         <value access="rw" delim="," mode="form" param="sql:email" 
name="email" alias="Email" type="string"></value>
         <value access="r" delim="," mode="form" param="sql:last_name" 
name="last_name" alias="Last Name" type="string"></value>
         <value access="r" delim="no" mode="form" 
param="sql:confirm_value" name="confirm_value" alias="Confirmation 
String" type="string"></value>

 My sitemap components:

            <map:action name= "dbUpdate" src= 
"org.apache.cocoon.acting.modular.DatabaseUpdateAction" />

<map:match pattern="runsql/process">
        <map:act type="dbUpdate">
            <map:parameter name="descriptor" 

Whats wrong? Thank you in advance for any helpful answer.


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

View raw message