This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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

Joined: Dec 31, 2003
Posts: 12

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 ( Umali
I agree. Here's the link:
subject: context-param in web.xml
It's not a secret anymore!