Yes, of course you can call a business delegate directly from an Action -
it's just java code.  The architecture I related in my prior post is simply
cleaner (in my opinion) because only a single action is defined in the
sitemap.  The business delegates are configured in cocoon.xconf.  

As for your scenario, I don't know why you would be getting the form
parameters from woody - the action has access to the Request object which
has the request parameters in it.  Typically, a separate action (or you
would use flowscript) to validate the parameters before invoking the action
that calls the business delegate.  Notice that this makes it easy to
"compartmentalize" your operations.

Ralph

 -----Original Message-----
From:   Derek Hohls [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 11, 2004 10:26 PM
To:     [EMAIL PROTECTED]
Subject:        RE: new to cocoon question


> Another question that I have regarding the previous post was that
cocoon 
> actions could not call the business layer directly?  I thought that
these 
> actions were able to do that.  For example, suppose a form gets
submitted by 
> a user.  Cocoon picks this up and forwards it to a particular cocoon
action. 
 >  This action grabs the form parameters via woody, calls a service
defined 
> by the business tier (passing any required parameters supplied in the
form), 
> processes any result returned by this service, and packages the final
result 
> via a Map to be returned to the user.   Now my question is, can this

> particular scenario be done with a cocoon action?  



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to