Can anybody please tell how can i print osm map using java, i have found mapfish printservlet.war file i have placed it in my tomcat and after starting the server, i have started sending but i get the following exception when using geoext:
org.mapfish.print.InvalidJsonValueException: spec.layers[0].type has an invalid value: OSM
If i send the request without using geoext, if i send it with the spec parameter that i have hardcoded, i’m unable to get how to send the map div as a parameter, so it prints without the map in it… is it the right way to do or is there anything else i need to do?