Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Global or Application value


Message #1 by Joshua Yip <joshuayip@t...> on Mon, 12 Feb 2001 12:00:58 +0800
Hi all,

I would like to initialize a global value for all the servlet that will
access tomcat. Web.xml enables this mapping of initial configuration
parameter but for every servlet that I write, I will have to repeat the
statement , which is not a very good thing if i have got a lot of servlet.
Can server.xml initialize a variable to a value and this value is accessible
to all the servlet? Is there any example available for this configuration in
server.xml ...or is there any other alternative to server.xml



Joshua Yip
Software Developer
IB-DOCS.COM
Intelligent Business Document dot Com
joshuayip@t...
YahooID: joshuayip
ICQ:8657630



  Return to Index