This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 9

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
 
wood burning stoves
 
subject: context-param in web.xml
 
Similar Threads
In which order filters works
Writing Russian characters to XML file
404 in using acegi security with Spring
Session handling in JSF
richfaces and problems with navigation