Hi All, Looking for some "best Practices" advice here. I have a properties file which I have some text messages defined in, for example, I have a String called "Select One" which I put as the first entry of several select box's. My question is this, right now, everytime I load the list of items for the select list, I open the properties file to get the value of the first item string "Select One" . Is this wrong to go fetch it every time, should I just fetch the string from the properties file once and store it in memory along with other similar strings I need for the application? I know how to load the property file and get the string values I need, just not sure if I should be only doing this once when the app starts up and storing the strings in an object, or just fetching them again and again as they are needed. Thanks much for any opinions, Kim
You asked for best practices; that means the JSTL. Why are you reluctant to use it?
Joined: May 17, 2001
Just the usual, short on time, and I know how to get strings from a properties file, which seems like the way many people handle this situation. I wasn't really looking for a differant way to handle internationalization, I was more looking for a best practices on how to handle string values from a properties file, either :
Get them once and store in memory
Get them as I need them each time the jsp page is requested.