Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web.xml