Skip to content

Instantly share code, notes, and snippets.

@leonardinius
Created January 10, 2011 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardinius/773162 to your computer and use it in GitHub Desktop.
Save leonardinius/773162 to your computer and use it in GitHub Desktop.
<web-resource key="xxx-yyy-js" name="XYZ Dialog JS resources">
<resource type="download" name="xxx-yyy.js" location="xxx-yyy.js">
<property key="content-type" value="text/javascript"/>
<property key="charset" value="utf-8"/>
</resource>
</web-resource>
<servlet-filter key="xxx-yyy-resources-servlet-filter" name="XYZ attach javascript resources"
class="xxx.yyy.filters.IncludeResourcesFilter"
location="before-dispatch" weight="200">
<url-pattern>/browse/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<!--dispatcher>FORWARD</dispatcher-->
<init-param>
<param-name>resources</param-name>
<param-value>${project.groupId}.${project.artifactId}:xxx-yyy-js</param-value>
</init-param>
</servlet-filter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment