Sep 7th, 2006, 09:49 AM
Defining application color constants
I'm implementing an application with Struts/Spring and one tile in my view contains a legend which mainly defines the colors used by the application.
Previously, this was implemented by a ServletContextListener which loads all necessary data from the database and made it available for the user requests to show. These color definitions come from the database.
How do I best implement this in Spring, so that the types (with their colors) will be read from the database when the application starts and will also be available to the application via the applicationContext?