Skip to content

Instantly share code, notes, and snippets.

@rbackhouse
Created June 11, 2011 11:40
Show Gist options
  • Save rbackhouse/1020486 to your computer and use it in GitHub Desktop.
Save rbackhouse/1020486 to your computer and use it in GitHub Desktop.
Required web.xml configuration for the Zazl JS Optimizer
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javaChecksum</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>compressJS</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<description/>
<display-name>JSServlet</display-name>
<servlet-name>JSServlet</servlet-name>
<servlet-class>org.dojotoolkit.optimizer.servlet.JSServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JSServlet</servlet-name>
<url-pattern>/_javascript/*</url-pattern>
</servlet-mapping>
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment