I have a struts based project (domain, ear, web) that I need to integrate with an existing project. This means that there will be multiple strut-config files, multiple ApplicationResources, etc.
Anyone done this before? What should I be concerned about? What about duplicate entries in both the struts-config files?
1-Create two different modules, each with their own Struts-config file and ApplicationResources file. This allows each module to have a degree of autonomy. This means it doesn't matter if both config files specify the same action path or action form name. Struts will still keep them straight.
2-Keep the applicaion as a single module with two config files. This will work, but if there are duplicate entries, the rule is the last entry wins, meaning that the one that is read last by the init process will be the one that is used. Also, while you can have more than one resource bundle file, you cannot have more than one default resource bundle. This means that the second and any subsequent resource files have to be defined with a key attribute, and referenced with a bundle attribute. Example:
I use the Application resources property file for error messages that I use to create and populate ActionMessages in my action. How do I tell it in the Action which property file to use??