File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes passing intialisation values to an application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "passing intialisation values to an application" Watch "passing intialisation values to an application" New topic
Author

passing intialisation values to an application

KOla Oyedeji
Greenhorn

Joined: Aug 28, 2001
Posts: 20
Are initialisation paramters loaded when they are referenced or earlier? I have some values passed to my application using the context-param element in my web.xml. Are these parameters read from the web.xml every time they are needed or are are they read once and then cached?
Also is there anywhere where some code can be executed the first time an application is started to initialise the application?
thanks
Dominic Paquette
Ranch Hand

Joined: Dec 13, 2002
Posts: 64
Hi,
I think the <context-param> get read when the application starts
To get notified of initialization you can use javax.servlet.ServletContextListener

Hope this helps
Dominic
 
 
subject: passing intialisation values to an application
 
Threads others viewed
Servlet Context parameters
testing Action class through StrutsTestCase
Servlet Context
JSP/Servlet - clarification needed
JDOM and Concurrency
MyEclipse, The Clear Choice