I've written an application in JSTL where the user would need to update some regional settings. So I have a combo box where the user can selected the right country like:
The Method in the class looks like this:
The problem is I have several pages that do this and the user may try to do this several times. This will slow down the system as the user would need to retrieve the records every from the database all the time.
Is there a way I can this to be done only once and then save the List somewhere in memory?
If it were me, I'd read in the values using a context listener, which would trigger once when the app is loaded. Then create the scoped variable in application scope using servletContext.setAttribute(). [ December 28, 2007: Message edited by: Bear Bibeault ]
subject: Retreiving more than 250 records everytime