When deploying OpenIDM, you may wish to add your own HTML static pages to the default Jetty container. Suppose for example you want to add a /help documents directory. One of the easiest way to do so is to add the following lines to your jetty.xml configuration file:

<Set name="handler">
      <New>
        <Set name="handlers">
             <Array type="org.eclipse.jetty.server.Handler">
                <Item>
                    <New>
                        <Set name="contextPath">/help</Set>
                        <Set name="handler">
                            <New>
                                <Set name="directoriesListed">false</Set>
                                <Set name="resourceBase">./my_help_docs_directory</Set>
                            </New>
                        </Set>
                    </New>
                </Item>
            </Array>
        </Set>
      </New>
    </Set>

So simple !

Les derniers articles par janua (tout voir)