On Wed, 6 Aug 2003, Sgarlata Matt wrote:
> Has there been any discussion of allowing resource bundles to inherit
> properties from other resource bundles?  For the project I am working
> on, it would be nice if we had one resource bundle with
> application-level properties and also module-specific resource bundles
> which had all the properties of the application-level resource bundle
> plus additional ones specific to that module.  I know you can specify
> multiple resource bundles per module in Struts, but the problem is that
> certain components (e.g. - the validator) always look for the default
> resource bundle.

 In some of my projects I have run into the same problem as well, and I'm
sure others have. It would be nice to have either a core module that
provided resources to all modules or atleast a way of specifying a way for
a the default resource bundle in modules to inherit values from a core
resource bundle as to avoid having to repeat values throughout an
application and introduce chances for inconsistency and error. This might
be done by specifying an application-wide resource bundle in struts
configuration and then have those values within all other module resource
bundles (inclding the default module). You could obviously overwrite the
values in your module's def. bundle. This would seem an
appropriate feature, unless there were other core resources that needed to
be shared throughout modules. Then it would seem a module-type enhance
would be appropriate. ahh, oh so vague. :)

-adam k.


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

Reply via email to