I don't know much about ServletContext as I have been primarily working with jsp/javabeans/EJB and not really with servlets at all. If anyone knows, is it possible for me to retrieve ServletContext information from InitialContext? Is it part of the same "tree" or are they completely separate and unrelated?
Carl Desborough
Greenhorn
Joined: May 08, 2000
Posts: 22
posted
0
I dont know of any connection (other than the name) between servlet and initial contexts ... InitialContext is where you can get register and get access to objects in JNDI. ServletContext allows a servlet to communicate with its container. Objects can be stored in and retrieved from a ServletContext (set and getAttribute) but i dont think its related to the InitialContext names.
Danny Mui
Ranch Hand
Joined: Dec 14, 2000
Posts: 42
posted
0
Another point, I believe that ServletContexts can only be retrieved from servlets as well (unless you JNDI the object).
maha anna
Ranch Hand
Joined: Jan 31, 2000
Posts: 1467
posted
0
Carl, Are you the famous 100% SCJP from AUS ? Just curious. regds maha anna
Carl Desborough
Greenhorn
Joined: May 08, 2000
Posts: 22
posted
0
famous? no ... but yes i did get 100% in scjp and i am from australia.
Originally posted by maha anna: Carl, Are you the famous 100% SCJP from AUS ? Just curious. regds maha anna