loading table of contents...

Content Application Developer Manual / Version 2310

Table Of Contents Loading Templates from a JAR in Classpath

When using Servlet 3.0, resources may be stored in JARs, and so can Templates. In order for that to work, templates must be stored under the path /META-INF/resources/WEB-INF/templates. The application container will automatically resolve that path as if it were in the file system.

The same JAR may be used inside a web application and from the content repository if the configured path matches the path inside the JAR. Following the example above, the format would have to be: jar:id:contentproperty:/Sites/templates/%s/data!/META-INF/resources/WEB-INF/templates/

Search Results

Table Of Contents

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.