File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Application scope variable in deployment discriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Application scope variable in deployment discriptor" Watch "Application scope variable in deployment discriptor" New topic
Author

Application scope variable in deployment discriptor

Ruchik Bhatt
Greenhorn

Joined: Jul 30, 2002
Posts: 13
hi all,
I m useing Tomcat 4.0 server. I want to set a variable with scope application. Is there a way that i can set it in deployment descriptor ? Or any other method ??
Thank you


SCJP
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
You can specify an application level parameter in your web.xml by using the context-parm element. This is then accessible thru the ServletContext or the implicit JSP application variable.
BTW, this is better off in the Servlets Forum.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Application scope variable in deployment discriptor
 
Similar Threads
Application Scope Session in IBM portal server
Application scope variable
Diffenrence between application and servletConfig - servletcontext
Related to Session and Request objects
can a variable with same name present in more than one scope?