Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application scope variable in deployment discriptor  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!