File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web.xml" Watch "Web.xml" New topic


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:


The secret to creativity is knowing how to hide your sources.
I agree. Here's the link:
subject: Web.xml
It's not a secret anymore!