Login  Register

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:

>
>
> I am experimenting with quercus (java php interpreter) integrated into
> orbeon.
>
> If I create a *.php application folder at root level
>
> i.e. within /orbeon/ and at same level as /web-inf/
>
> although *.php is interpreted by quercus servlet other file types are not
> recognised ..
>
> *.css, *.png,  etc.
>
> Is there a file mapping somewhere for other file types?
>
> I know of this configuration file for source-viewer ...
>
> orbeon-forms / src / resources / apps / source-viewer / get-files.xpl
>
> http://orbeon-forms-ops-users.24843.n4.nabble.com/Adding-new-file-types-for-quot-view-source-quot-in-Form-Runner-td3064178.html
> http://orbeon-forms-ops-users.24843.n4.nabble.com/Adding-new-file-types-for-quot-view-source-quot-in-Form-Runner-td3064178.html
>
> but my *.php apps are at /root/ level (above /web-inf/ ) and other resources
> (*.css, *.png etc.) are not being rendered in the browser when interpreting
> *.php.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/mapping-file-types-css-png-at-root-level-tp3160446p3160446.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


--
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