I do use extensions of ActionConfig & ForwardConfig.

What I've done is implement a "layer" of extensions of Struts classes, in
which I've added custom fields and methods that I need. I'd like to do the
same for ModuleConfig. Is that even possible without tinkering with the
Struts code?

--aslam

-----Original Message-----
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:41 AM
To: Struts Users Mailing List
Subject: RE: Using an extension of ModuleConfigImpl


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:[EMAIL PROTECTED]
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

Reply via email to