From: Keats K. <ke...@xa...> - 2005-07-30 18:09:57
|
Marc Palmer wrote: > The WM Spring code I have is simply a conversion of the Velocity > Spring view for WM. There is an outstanding issue in that Velocity > supports a "spring.vm" macro that is on the classpath in spring.jar > and you can pull it in from any template as just "spring.vm" I > believe. We can't do this easily as far as I can see, as we need to > modify the WM config from within the Spring view code, which means > overriding any webmacro.properties etc. Actually it is possible to modify the configuration dynamically. I haven't tried this but the following should work: Properties props = new Properties(); props.setProperty("someProperty", "someValue"); broker.getSettings().load(props); Keats |