Eamonn:

The plugin gets the specific ModuleConfig for the module in which the <plugin> element appears. If you want to perform a certain setup operation in several modules, then each of them should repeat the same <plugin> element (or as close to the same as is appropriate.)

If you only put the <plugin> element in one struts-config.xml, then it will only be initialized once, for that specific module.

I'm not totally sure I understood your question, but if I did, hopefully this helps. We developed a library once that does something like this where it reads from a database to set up a form object.

Joe


At 6:45 PM -0500 3/25/06, Eamonn O'Donnell wrote:
Hi,
I have multiple modules configured in my web application
I want to in the init() method of my plugin
1. read a file with some info
 2. find a particular ModConfig object corresponding to 1 of my modules
 3. According to the info in the file create and add FormBeanConfig
 objects to that ModConfig object.

I think my big problem would be in finding the correct ModConfig object?  I
know I am passed a ModConfig object in the init method but how can I access
one that I want to manipulate?

Any pointers appreciated
Eamonn


--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com
"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
        -- Robert Moog

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

Reply via email to