aspose file tools
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 Badass: Making Users Awesome this week in the Game Development 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: context-param in web.xml