I cannot really help with map:action and xsp's, because I never use them, but 
if you're heading for a little bit more complex things and database queries, 
try to take a look at how things are made persistent with BrickCms (it is not a 
cms, but an example): http://wiki.apache.org/cocoon/BricksCms and 
http://www.cocoongt.org/binaries/bricks-cms-overview.pdf.

Your maintainance will be way easier and your application much cleaner.

Regards Ard

-- 

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-------------------------------------------------------------
[EMAIL PROTECTED] / http://www.hippo.nl
-------------------------------------------------------------- 


> 
> Hi all, I am trying to run a query.
> 
> sitemap.xml:
>   <map:action-sets>
>     <map:action-set name="process">
>       <map:act type="req-params">
>          <map:parameter name="parameters" value="qry-node node.id"/>
>          <map:act type="mod-db-qry" mode="one">
>             <map:parameter name="table-set" value="querytableset"/>
>             <map:parameter name="dummy" value="123"/>
>          </map:act>
>       </map:act>
>     </map:action-set>
>   </map:action-sets>
> 
>   ...
> 
>   <map:pipelines>
>     <map:pipeline>
>       <map:match pattern="*.html">
>         <map:act set="process">
>           <map:parameter name="use-request-parameters" value="true" />
>         </map:act>
>         <map:aggregate element="site">
>            <map:part src="cocoon:/menu"/>
>            <map:part src="cocoon:/body/{1}"/>
>         </map:aggregate>
>         <map:transform src="context://stylesheets/site-to-xhtml.xsl"/>
>         <map:serialize type="html"/>
>       </map:match>
>     </map:pipeline>
>   </map:pipelines>
> 
> database description file:
> 
>   <table name="querytable">
>     <queries>
>        <query mode="others">select id from node where id=?</query>
>     </queries>
>     <keys>
>         <key name="id"          type="int" autoincrement="true">
>            <mode name="auto"    type="autoincr"/>
>         </key>
>     </keys>
>   </table>
> 
> I don't get any errors, but as well the XSP {1} does not get 
> any attributes. In a future version I would like to call SQL 
> stored procedures. Can anyone help, with may be a description 
> or a DTD of the database description file? Thank you, mare..at.web.de
> 
> 
> _______________________________________________________________
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • RE: modular DatabaseAction and database description file Ard Schrijvers

Reply via email to