You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Karachiwala, Aslam" <As...@ThomsonMedia.com> on 2003/07/23 16:39:02 UTC

Using an extension of ModuleConfigImpl

Hi, all.

In Struts 1.1, is there a way to use one's own implementation/extension of
ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how
this could be done in any of the config *.xml files. 

If this is not configurable then an option that was suggested to me was to
invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory
class which will create my extension of ModuleConfigImpl. If I wanted to do
this then where/when should I set the factory class?

--aslam

RE: Using an extension of ModuleConfigImpl

Posted by Mike Jasnowski <mj...@bea.com>.
You can write minor extensions to some config elements like <action> and
<forward>. This extension class is named via the "className" attribute of
those elements.

-----Original Message-----
From: Karachiwala, Aslam [mailto:Aslam.Karachiwala@ThomsonMedia.com]
Sent: Wednesday, July 23, 2003 10:39 AM
To: Struts-users (E-mail)
Subject: Using an extension of ModuleConfigImpl


Hi, all.

In Struts 1.1, is there a way to use one's own implementation/extension of
ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how
this could be done in any of the config *.xml files.

If this is not configurable then an option that was suggested to me was to
invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory
class which will create my extension of ModuleConfigImpl. If I wanted to do
this then where/when should I set the factory class?

--aslam


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