wood burning stoves 2.0
The moose likes Servlets and the fly likes context-param in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "context-param in web.xml" Watch "context-param in web.xml" New topic

context-param in web.xml

Martin Carlsen

Joined: Aug 11, 2010
Posts: 6
Is it possible to achieve the following in my web.xml file:

It seems like this doesn't work. Am I missing something, or isn't it possible to do so?
Rick Umali
Ranch Hand

Joined: Dec 31, 2003
Posts: 32

I found a post in JavaRanch titled "environment variable referance in Web.xml". It describes a technique where an environment variable (outside the web.xml) can be processed. This seems similar to what you want, with the one (big) change being that your SecurityFilter must "dereference" the variable. Check it out, and good luck!

Rick (rickumali.com) Umali
subject: context-param in web.xml
It's not a secret anymore!