aspose file tools*
The moose likes Servlets and the fly likes Web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web.xml" Watch "Web.xml" New topic
Author

Web.xml

Sim Raina
Ranch Hand

Joined: Nov 20, 2003
Posts: 33
is it possible to declare a constant variable in web.xml so i can use it again and again.
if it is , can u tell how ,
thanks guys


if u can't impress people with ur intelligence , confuse them with ur bullshit
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
You can set variables in the appliation context by doing the following:

and in your application you can do the following:

HTH


The secret to creativity is knowing how to hide your sources.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Web.xml