Re: mapping file types (*.css, *.png, ..) at <root> level
Posted by
Erik Bruchez on
Dec 23, 2010; 11:44pm
URL: https://discuss.orbeon.com/mapping-file-types-css-png-at-root-level-tp3160446p3162746.html
In web.xml, the Orbeon servlet maps to "/", which means that it will
handle any path not specifically handled by other servlets (filters
notwithstanding).
What happens when Orbeon sees e.g. "/orbeon/foo.css" is that it looks
the resource through the Orbeon resource manager. By default it will
look under WEB-INF/resources and within JAR files.
Try adding this to your web.xml, after similar <context-param> elements:
<context-param>
<param-name>oxf.resources.priority.3</param-name>
<param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.3.oxf.resources.webapp.rootdir</param-name>
<param-value></param-value>
</context-param>
-Erik
On Wed, Dec 22, 2010 at 2:50 AM, DL <
[hidden email]> wrote:
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws