From: Lane S. <la...@op...> - 2003-01-21 05:34:26
|
Marc Palmer wrote: > On Mon, 20 Jan 2003 16:53:22 -0000, Marc Palmer <ma...@an...> > wrote: > >>> Second, I want to see some rule-based action handling from a template: >>> >>> #if (conditionA) { $actionA } >>> . >>> . >>> . >>> #if (conditionZ) { $actionB } >> >> >> Hmmm, very interesting. Using templates as action handlers. >> Interesting plan. I will have to think about this more. > > > Actually that's probably not what you meant is it. I suspect you meant > having a template that determines which action gets executed. If so, > this could be done with a custom ActionList implementation that loads > a single "actions.wm" template that provides all this logic, and it > evaluates this template every time getAction(WebContext) is called. > > Am I on the nail now? Yeah. You let the template author control the expert action flow. Not the servlet writer. In this case, the action control flow is delegated to a template writer's expert knowledge of the action flow, rule base. The programmer writes the ugly stuff like transaction commits, etc. -Lane > > > Marc > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Webmacro-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-devel > -- Lane Sharman http://opendoors.com Conga, GoodTimes and Application Hosting Services http://opendoors.com/lane.pdf BIO |