wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Consider Paul's rocket mass heater.
 
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