Kevin:

I think the answer is basically no.  The application configuration is
processed at initialization time and then "frozen".  Even if you try to add
your own action mappings to the existing set of mappings in a PlugIn you
can't do it because by the time the PlugIns run it is frozen.  You could
create your own additional pool of configuration objects and change the
request processing to use both pools, but that would be painful,
error-prone, and somewhat difficult.  What I ended up doing was having my
initialization run first, then I  made a copy of the struts-config.xml,
added my entries to that entry, and told Struts to initialize with the new
one.

Hope that helps.

Chris Seekamp




|---------+---------------------------->
|         |           "Kevin Roast"    |
|         |           <kevin.roast@acti|
|         |           viti.com>        |
|         |                            |
|         |           09/18/2002 01:01 |
|         |           PM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                         |
  |       To:       "Struts Users Mailing List" <[EMAIL PROTECTED]>       
                                                         |
  |       cc:                                                                          
                                                         |
  |       Subject:  Dynamic configuration?                                             
                                                         |
  |                                                                                    
                                                         |
  |                                                                                    
                                                         |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



Hi,


Does anyone know if it's possible too add config elements to the
application configuration on the fly? The reason I ask is that the
application I am considering will probably NOT use the struts-config.xml
for most forms - instead it will some kind of application definition
dynamically from a data-source. Therefore I will need to create
action-mappings config elements etc. when my application initializes. Does
anyone know if this can be done?


Thanks,


Kevin
--
+44 (0)1628 589125
[EMAIL PROTECTED] --
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







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

Reply via email to