Link to home
Start Free TrialLog in
Avatar of applekanna
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 !
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of applekanna
applekanna

ASKER

will the order in whcih the servlet files are loaded the same way they  are
listed  in the web.xml ?

imean

<servelt-name >ABC</servelt-name >
<servelt-name >XYZ</servelt-name >


ABC loaded and then XYZ loaded..
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks all !