On Mon, February 14, 2005 11:12 am, Vic said:And 10 years from now... have a declerative langage... where all you do is write in xml what you want to happen.)
Although no one has any reason to believe that I actually was :) ... I've recently been toying with the idea of building exactly that. ... In essence, the ENTIRE control layer gets turned into ADL expressions in some XML configuration file, the only actual Java code you would have to still write are the business delegate classes.
Sounds like Jelly, or Marmalade.
http://jakarta.apache.org/commons/jelly/ http://marmalade.codehaus.org/
I'm convinced that XML is a lousy way to specify things like this.
In fact, such an idea I believe could be added to Struts as it exists today... if you use something like BSF with Rhino, you should be able to make the expression language Javascript, and then you basically do away with Actions altogether in favor of executing pieces of Javascript pulled from a configuration file.
You've just described struts-bsf. http://struts.apache.org/bsf/
I think scripting languages are likely to be more effective than XML for specifying any kind of complex logic. (Although I asked one of my developers to give struts-flow a go recently and she did not come away very enthusiastic about its use of JavaScript for config/logic expression.)
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]