Mercurial > dive4elements > river
diff flys-client/src/main/webapp/WEB-INF/web.xml @ 2519:427df4e81af0
Call MapFish Printer via servlet to evade viral GPLv3.
flys-client/trunk@4398 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 14 May 2012 09:52:04 +0000 |
parents | 328aa273ef3b |
children | 885b02130528 |
line wrap: on
line diff
--- a/flys-client/src/main/webapp/WEB-INF/web.xml Sun May 13 18:29:22 2012 +0000 +++ b/flys-client/src/main/webapp/WEB-INF/web.xml Mon May 14 09:52:04 2012 +0000 @@ -254,6 +254,20 @@ <url-pattern>/flys/map</url-pattern> </servlet-mapping> + <servlet> + <servlet-name>mapfish.print</servlet-name> + <servlet-class>org.mapfish.print.servlet.MapPrinterServlet</servlet-class> + <init-param> + <param-name>config</param-name> + <param-value>WEB-INF/config.yaml</param-value> + </init-param> + </servlet> + + <servlet-mapping> + <servlet-name>mapfish.print</servlet-name> + <url-pattern>/flys/mapfish-print/*</url-pattern> + </servlet-mapping> + <!-- Servlet to bridge between MapFish Print and FLYS3 --> <servlet> <servlet-name>MapPrintService</servlet-name> @@ -262,6 +276,10 @@ <param-name>config</param-name> <param-value>WEB-INF/config.yaml</param-value> </init-param> + <init-param> + <param-name>print-url</param-name> + <param-value>http://localhost:8888/flys/mapfish-print</param-value> + </init-param> </servlet> <servlet-mapping>