cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard In Public" <edificat...@blueyonder.co.uk>
Subject Re: Modular Database Actions: Urgently seeking documentation
Date Tue, 18 Mar 2003 15:15:56 GMT
Hi Chris

Firstly, thanks for your response.  I have been mulling over this and
revisiting the docs, but I have not managed to get things working.

I suspect that my problem lies in chanelling the request parameters passed
by the form into the database action.
Specifically, I cannot figure out what:

> I've not tested it, but in theory you could set the path separator for
> the action to "/" and use the xmlform input module. Drawback is, you
> need to pass the module name and form id for every value OR create
> different instances of the xmlform module for each and every form
> id.

would look like in practice.  Do you have any samples?

Best,

Richard

----- Original Message -----
From: "Christian Haul" <haul@dvs1.informatik.tu-darmstadt.de>
To: <cocoon-users@xml.apache.org>
Sent: Friday, March 14, 2003 8:43 AM
Subject: Re: Modular Database Actions: Urgently seeking documentation


> On 13.Mar.2003 -- 07:48 PM, Richard In Public wrote:
> > Hi
> >
> > I've been struggling for some time now to understand how to use modular
> > database actions.  I have not been able to find any directly helpful
> > documentation.
> >
> > Does anyone have a simple example using an XMLForm to insert a row with
a
> > modular database add action?
>
> I've not tested it, but in theory you could set the path separator for
> the action to "/" and use the xmlform input module. Drawback is, you
> need to pass the module name and form id for every value OR create
> different instances of the xmlform module for each and every form
> id. Provided there is sufficient demand, we could try to make passing
> the form id easier.
>
> > I've listed some of the sources that I've tried below.
>
> > 1.  Coocoon Wiki's ModularDatabaseActions page stops short of providing
> > information on using these actions from the sitemap.
>
> The usage from sitemap is like any other action. Details for
> parameters can be found in the accompanying javadocs.
>
> > 2.  I found the mod-db sample in the 2.1 source tree, with the sitemap
at:
> > cocoon-2.1\src\blocks\databases\samples\mod-db\sitemap.xmap.  I have not
> > been able to figure out how the 'req-params' actions are used, nor how
the
>
> req-params is a guard action that tests existence of request
> parameters. The nested database action thus fires only when a given
> set of request parameters is present.
>
> > value of the 'parameters' parameter is to be understood.  This example
also
> > seems to be based on ESQL, whereas I am trying to use XMLForms.
>
> ESQL and XMLForms do not overlap. ESQL is used in the sample to
> display the database contents.
>
> > 3.  When I invoke the action from my browser/xmlform it breaks (or
returns
> > null) and I have not be able to find any log entries relating to this.
I
> > have set the logger parameter when I declare the action in my sitemap.
>
> Since it is modular, log entries (need to enable log level DEBUG) stem
> from various classes and are distributed among sitemap.log and core.log
>
> > 4.  I have not been able to locate a straight forward example in the
mailing
> > lists or anywhere else.
>
> HTH
>
> Chris.
> --
> C h r i s t i a n       H a u l
> haul@informatik.tu-darmstadt.de
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


---------------------------------------------------------------------
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