|
From: Dan B. <da...@lc...> - 2009-01-22 19:03:24
|
I have a web application with <context-param>'s with default values in
it's web.xml. The WAR for this is loaded in an embedded server:
public class Main {
private static Server server = new Server(8180);
private static WebAppContext wac = new WebAppContext();
public static void main(String[] args) throws Exception {
wac.setContextPath("/");
wac.setWar("web/LprServlet.war");
server.setHandler(wac);
server.start();
}
}
I would like to be able to override the <context-param>'s from
a .properties file at startup. Documentation on this seems to be
sparse (or I'm looking in the wrong place). Any help would be greatly
appreciated.
Dan
|