applekanna
asked on
Loading a vector to the servelt context
Hi
I have a table of country names that i plan to read into a vector and load the vector in the servelt context for all pages to access it. I am not sure as to how to do.
I want to write it in a servelt and put it in the init method,
Will this load it into the servelet contecxt when the serever starts up? Any link or snippets?
I also have a few classes that need to load some info during its init method.
How can i make sure these classes start up when the server loads.
Do it make an object of the class in the init servlet ?
Thx !
I have a table of country names that i plan to read into a vector and load the vector in the servelt context for all pages to access it. I am not sure as to how to do.
I want to write it in a servelt and put it in the init method,
Will this load it into the servelet contecxt when the serever starts up? Any link or snippets?
I also have a few classes that need to load some info during its init method.
How can i make sure these classes start up when the server loads.
Do it make an object of the class in the init servlet ?
Thx !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all !
ASKER
listed in the web.xml ?
imean
<servelt-name >ABC</servelt-name >
<servelt-name >XYZ</servelt-name >
ABC loaded and then XYZ loaded..