On Fri, 4 Oct 2002, Dan Cancro wrote:
> Date: Fri, 4 Oct 2002 15:53:42 -0700
> From: Dan Cancro <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Persistence Framework Comparison?
>
> This made me think of a thought I had earlier. Folks developed things like
> Velocity and XMLC because jsp has given people more than enough rope to hang
> themselves. What if someone came up an analogous "Controller Template
> Language" that made it impossible to put business logic in your Action
> classes? It would somehow use an interface like what is being described
> here to talk to the business/persistence parts. I think that would be
> pretty cool.
>
You might want to take a look at the "jelly" project (in commons-sandbox)
for a way to deal with this kind of thing. It's on my list of
technologies to evaluate for adding workflow support (post-Struts 1.1),
and it's much better (as well as farther along) than my original sandbox
project in that direction.
The basic thinking is that you'd script your Actions using Jelly, which
(among other things) can be made to call your business class methods
directly -- essentially you are just scripting an adapter between the web
tier and the business tier. This doesn't make encoding business logic
impossible, but it's enough wordier that constructive laziness will
encourage the correct behavior :-).
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>