Hi all,
I have few
jsp pages that need to display some selected values (key value pair) from a properties file at each page load. I thought I'm going to try something like below.
1- Have a
servlet with overridden init method to read the file and load the key value pairs in to a hash map
2- Access the map from each page.
The problem is I couldn't figure out how to share the map to the jsp pages.
If I use a
java class to load the key value map and return values when needed, I will have to read the property file, each time I create an instance of that class.
Thanks in advance for any suggestions / help to resolve this problem.