On 12.Jul.2001 -- 11:14 AM, Sheshadri Mantha wrote:
> Hello All:
> I'm new to Cocoon2 and want to learn the steps involved in using actions
> instead of embedding java logic in xsp pages.  I've read the documentation
> page on action and admit that I fail to understand the constructs behind the
> HelloWorldAction and what it accomplishes (and hence am not able to
> "extrapolate").  I get the next section that talks about the action sets and
> have a vague idea on how they get called etc.  So... I get some of the
> high-level stuff and what I'd like is a working example that I can disect.
> Perhaps an Action oriented solution to the "problem in embedding java logic
> in xsp" (as outlined in actions.html documentation page -- this is the first
> code sample on this page).

OK, have a look at the samples supplied with C2. The employee sample
uses actions as does the session-state example in the CVS
version. Both illustrate different usage patterns so get the CVS
version and look at the examples.

Action sets are a way to reference a couple of actions together. Which
ones get executed is determined by a request parameter named
"cocoon-action".

> On my understanding, I'd like to present a step-by-step addition to the
> Actions documentation.

Great!

> Also, from my understanding of the documentation, the SQLTransformer class
> takes a SQL Statement and "constructs" an XML from the result set... is this
> true?

Yes.

> My ultimate goal is to tie the Actions in with my classes that implement
> business logic, db extraction, updates and inserts.

That's what they're for.

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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