This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web.xml
 
Similar Threads
Complete web.xml file in XML format
HFS compression example query ?
regarding error message in web app deployment
Why such web.xml and servlet invalid?
Servlet not getting invoked