Hint:  Struts uses the commons-digester to load the configuration (from 
files, currently) ... in a lot less lines of code than I can see you 
having in your plugin :-)

I was going to add that you couldn't modify the configuration with your 
plugin because it would be frozen - but that appears to be invalid. 
 Looking closer at the source shows plugins are initialized before the 
configuration is frozen.  In other words, this should be a very doable 
approach.

I would see if there were some way I could "feed the digester from a DB 
source".  You may well find this to be a lot better solution than having 
to hand code the entire process yourself.

Ove Ranheim wrote:

>Because I want it parameterized through a database... right.
>
>Ove
>
>-----Original Message-----
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: 4. oktober 2002 16:29
>To: Struts Users Mailing List
>Subject: Re: [1.1 b2] How to manage the struts-config programatically?
>
>No offense here - serious question:  Why not just use the config file 
>and let the action servlet load it?
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to