You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by andexor <an...@yahoo.com> on 2002/05/21 04:51:04 UTC

Aggregates

Is it possible to have an aggregate where one of the parts points to another aggregate?  I have
tried it, but it doesn't work and I've searched the docs at xml.apache.org.

Ed


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: DatabaseAddAction

Posted by Hugo Burm <hu...@xs4all.nl>.
Hello Kenny,

Your "subject" is your clue to the answer. An Action is called. If you not
already did so, please read the Cocoon docs about Actions.

In the employee example (/docs/samples/forms/employee.xsp), an Action is
called by supplying a request parameter "<input type="submit"
name="cocoon-action-Add" value="click here to add"/>", which, in combination
with the definitions in the site map, calls the Java class
DatabaseAddAction.java in "\xml-cocoon2\src\java\org\apache\cocoon\acting".
In this class the method "getAddQuery" builds the insert string you are
looking for.  The path "\xml-cocoon2" points to the place where I installed
the Cocoon sources. If you don't have the Cocoon sources (thus, binaries
only), you must rely on the documentation of these Actions (...).

Hugo Burm
hugob@xs4all.nl


-----Original Message-----
From: Kenny Chow [mailto:kycaeolus@yahoo.com]
Sent: Tuesday, May 21, 2002 9:15 AM
To: cocoon-users@xml.apache.org
Subject: DatabaseAddAction


I've read the tutorial but didn't see any "insert"
statement in the descriptor nor in the sitemap. The
descriptor file only maps parameter names to table
columns. So I am wondering how the insert was done.
Would someone point me to some related resources or
give a hint to mastering this action?




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


DatabaseAddAction

Posted by Kenny Chow <ky...@yahoo.com>.
I've read the tutorial but didn't see any "insert"
statement in the descriptor nor in the sitemap. The
descriptor file only maps parameter names to table
columns. So I am wondering how the insert was done.
Would someone point me to some related resources or
give a hint to mastering this action?


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: Aggregates

Posted by Conal Tuohy <co...@paradise.net.nz>.
you need a part which refers to another aggregate using the "cocoon:"
pseudo-protocol.

> -----Original Message-----
> From: andexor [mailto:andexor@yahoo.com]
> Sent: Tuesday, 21 May 2002 14:51
> To: cocoon-users@xml.apache.org
> Subject: Aggregates
>
>
> Is it possible to have an aggregate where one of the parts
> points to another aggregate?  I have
> tried it, but it doesn't work and I've searched the docs at
> xml.apache.org.
>
> Ed
>
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>