struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <>
Subject Re: Dynamically adding form beans in plugin
Date Sun, 26 Mar 2006 00:16:44 GMT

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 


At 6:45 PM -0500 3/25/06, Eamonn O'Donnell wrote:
>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

Joe Germuska *    

"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:
For additional commands, e-mail:

View raw message