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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>

            Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos)
      Key fingerprint = 89D9 E405 F8B1 9B22 0FA2  F2C1 9E57 5AB1 88DD 65AF
-------------------------------------------------------------------------
Stuart Roebuck                                  [EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to