You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthew Hailstone <ma...@waterford.org> on 2002/05/09 21:49:09 UTC
Custom Database Action
I'm a newbie. I've created my own version (tweaked it a little) of the
bonebreaker example found on the cocooncenter website :
http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
I am still having a hard time grasping how to create actions in cocoon. I'm
trying to connect to a database, perform some queries, and use the
information from the queries in my pipelines. I've already looked at the
"Creating and Using Actions" section of the online User Guide :
http://xml.apache.org/cocoon/userdocs/concepts/actions.html and could not
get that example to work.
I'm trying to not use XSP's to preserve the separation between logic,
content, and style. Any links to a more extended documentation on action
creation and also their uses in cocoon would be much appreciated. I'm
starting to notice that I'm spinning my wheels. :)
Matthew
---------------------------------------------------------------------
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: Custom Database Action
Posted by Artur Bialecki <ar...@digitalfairway.com>.
What exactly is the problem. The action documentation
has enough stuff the get started. Look in the source code
cocoon-2.0.2/src/java/org/apache/cocoon/acting for examples
of actions. Remember to define your actions in the sitemap
before you use them. Make sure that the classloader that
loaded cocoon can find your action class.
Artur...
> -----Original Message-----
> From: Matthew Hailstone [mailto:matthewh@waterford.org]
> Sent: Thursday, May 09, 2002 3:49 PM
> To: cocoon-users@xml.apache.org
> Subject: Custom Database Action
>
>
> I'm a newbie. I've created my own version (tweaked it a little) of the
> bonebreaker example found on the cocooncenter website :
> http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
>
> I am still having a hard time grasping how to create actions in cocoon. I'm
> trying to connect to a database, perform some queries, and use the
> information from the queries in my pipelines. I've already looked at the
> "Creating and Using Actions" section of the online User Guide :
> http://xml.apache.org/cocoon/userdocs/concepts/actions.html and could not
> get that example to work.
>
> I'm trying to not use XSP's to preserve the separation between logic,
> content, and style. Any links to a more extended documentation on action
> creation and also their uses in cocoon would be much appreciated. I'm
> starting to notice that I'm spinning my wheels. :)
>
> Matthew
>
>
> ---------------------------------------------------------------------
> 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>
Re: Custom Database Action
Posted by Stuart Roebuck <st...@adolos.co.uk>.
If you're queries are going to result in any quantity of information
then you are probably better off creating a generator rather than an
action.
Also, I don't think there should be any compromise to the separation of
logic, content and style in using XSP to create a generator. Using XSP
saves all the hassles of compiling and embedding java source in your
project and registering new actions / generators, etc. I think there
are some examples of database accessing XSP code within the default
webapp that comes with Cocoon 2.
Stuart.
On Thursday, May 9, 2002, at 08:49 PM, Matthew Hailstone wrote:
> I'm a newbie. I've created my own version (tweaked it a little) of the
> bonebreaker example found on the cocooncenter website :
> http://www.cocooncenter.de/cc/documents/resources/navigation/index.html
>
> I am still having a hard time grasping how to create actions in cocoon.
> I'm trying to connect to a database, perform some queries, and use the
> information from the queries in my pipelines. I've already looked at
> the "Creating and Using Actions" section of the online User Guide :
> http://xml.apache.org/cocoon/userdocs/concepts/actions.html and could
> not get that example to work.
>
> I'm trying to not use XSP's to preserve the separation between logic,
> content, and style. Any links to a more extended documentation on
> action creation and also their uses in cocoon would be much
> appreciated. I'm starting to notice that I'm spinning my wheels. :)
>
> Matthew
>
>
> ---------------------------------------------------------------------
> 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>
>
>
Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF
-------------------------------------------------------------------------
Stuart Roebuck stuart.roebuck@adolos.com
Systems Architect Java, XML, MacOS X, XP,
etc.
ADOLOS <http://www.adolos.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>