Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Instantiating a ResourceHandler in XML

Hello,

how does one instantiate a ResourceHandler using xml files?

I've tried the following but to no avail.

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd";>
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath"><SystemProperty name="aContext" default="/acontext" /></Set>
  <Set name="handler">acontext-handler.xml</Set>
</Configure>


acontext-handler.xml:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd";>
<Configure class="org.eclipse.jetty.server.handler.ResourceHandler">
	<Set name="resourceBase">/mnt/iiiparnex01_pdf/PDF/III/</Set>
</Configure>

Many thanks.

Philippe



Back to the top