Hi All,
What is the vintage of the MapFish print server plugin? I
was testing using an alternate filename for the config.yaml using the GeoExt
client, and can't seem to get it to trigger reading that alternative yaml.
I thought at first it was the age of my server, but I updated, and still can
only use a single config.yaml.>From the J. Jones on the mapfish forum, the relevant bit of code: >From : https://github.com/jbjonesjr/mapfish-print/blob/master/src/main/java/org/map fish/print/servlet/BaseMapServlet.java NOTE: Web.xml initializes the config param to config.yaml ........ protected synchronized MapPrinter getMapPrinter(String app) throws ServletException { String configPath = getInitParameter("config"); ........ if (app != null) { if (lastModifieds == null) { lastModifieds = new HashMap<String, Long>(); //debugPath += "new HashMap\n"; } if (printers instanceof HashMap && printers.containsKey(app)) { printer = printers.get(app); //debugPath += "get printer from hashmap\n"; } else { printer = null; //debugPath += "printer = null 1\n"; } configFile = new File(app +".yaml"); } else { configFile = new File(configPath); //debugPath += "configFile = new ..., 1\n"; } Thanks, Steve http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather Geographic Information Systems (GIS) Manager (216) 635-3243 [email protected] <http://www.clemetparks.com/> clevelandmetroparks.com
<<image001.png>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
