I went to a Java Struts talk a awhille ago and started thinking about Struts for WEbware.Lastly, there's the matter of specializing the generic servlet, which is really just another way of looking at the other two issues, though in this case there's the presumption that the servlet has a basic understanding of what to do, but you want to change that.I'm not sure what you mean here ? Do you mean to dynamically change the flow of the program using some sort of configuration (please not xml) ?No, I usually don't like "configuration" per se, though the line between program and configuration can be fuzzy sometimes.For instance, say you have a reusable login screen (boringly simple, but easy example). That servlet could display the login form just fine in a generic fashion, but you might also want to be able to override the form display while still using the rest of the page.
The remote config file of Strutts is way too complicated, but there is a good idea in there, a seperation of code and flow. In the code we should say self.forward(loginpage) and tin the config file have a vline - 'loginpage': MyCustomLogin
It is very doable to handle what struts does w/ FunformKit and some standard framework structure.
You just need to map each action to a class rather then a function, and then provide an external file that maps action names to action classes.
four times the work, five times the files, but more portable.
-Aaron
