This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "context-param in web.xml" Watch "context-param in web.xml" New topic
Author

context-param in web.xml

Martin Carlsen
Greenhorn

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
Greenhorn

Joined: Dec 31, 2003
Posts: 10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: context-param in web.xml