struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brown <>
Subject Re: Why I Hate Struts Modules
Date Wed, 12 Oct 2005 04:48:42 GMT
Why not have the best of both? I've found this trick to be handy:
1. Define a common config file that contains items you want to share
2. For each module, specify both the common and module-specific
configuration file. At runtime, they will be treated as if they were one big
file to begin with.

This technique is especially potent with the new "extends" attribute
available with Struts 1.3.


On 10/11/05, David G. Friedman <> wrote:
> Paul,
> > See, after all these years, I really wanted was to
> > split files up. Modules don't gain me anything, do
> > they? I know (or I think) when Craig wrote Struts 0.x,
> > he had an action.xml which did something similar....
> > Now I could create file of just actions and use XML
> > ENTITIES to include them, but I never see people doing
> > that solution. Is it not well-known or frown upon?
> I'd only heard once on this list about the XML entities trick. Personally,
> I'd prefer that one like that if I were creating anything large enough to
> warrant breaking the configuration down into multiple files/modules. :)
> Regards,
> David
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message