Re: Release Work

Keats Kirsch <[email protected]> Sat, 30 Jul 2005 14:09:47 -0400
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
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




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click