cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <>
Subject RE: new to cocoon question
Date Fri, 12 Mar 2004 16:26:57 GMT
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.


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

> Another question that I have regarding the previous post was that
> actions could not call the business layer directly?  I thought that
> 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
 >  This action grabs the form parameters via woody, calls a service
> by the business tier (passing any required parameters supplied in the
> processes any result returned by this service, and packages the final
> 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:
For additional commands, e-mail:

View raw message