You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by gilles <gi...@ign.fr> on 2004/09/29 10:20:25 UTC

altering module configuration during run-time

Hi,

I'm using struts 1.2.4 framework and I'm trying to
alter a form-bean definition (specified in struts-config.xml file) during
run-time in order to temporaly change the java class that implements that
form-bean.

I subclassed the ModuleConfigImpl and ModuleConfigFactoryImpl classes
in order to desactivate the freeze() method that prevent any run time
modification of the configuration and I also subclassed the 
TilesRequestProcessor (tiles are used by my application) in order to
perform the modification when it is necessary.

This works fine : I manage to alter the ModuleConfig instance stored in
the servlet context at the right moment, but the modification of the
configuration are not taken into account : the old form-bean definition
is used by the application to instanciate the ActionForm subclass associated.

Is this the right way to proceed ?

Thanks

Gilles




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org