• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application scope variable in deployment discriptor

 
Ruchik Bhatt
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic