This content has been marked as final.
Show 1 reply
-
1. Re: Abstracting the new IntialContext(props) process
jwkaltz Oct 24, 2001 4:32 AM (in response to hraun)What I have, is one controller / login servlet which has servlet parameters for these properties and creates the InitialContext. This servlet also creates an object I call user handle which contains user information + the Context; and stores this object in the HttpSession.
All other servlets (which live in the same environment) retrieve this handle and use its Context. It's not necessary to store the Hashtable, if you have the Context.