title: Path to static content with Embedded Jetty
body: <p>I'm using embedded Jetty to serve static content from the "public" folder in my project:</p>
  
  <pre><code>    Server server = new Server(9999);
      ServletContextHandler context = new ServletContextHandler();
      context.setContextPath("/");
  
      ServletHolder staticHolder = new ServletHolder(new DefaultServlet());
      staticHolder.setInitParameter("resourceBase", "./public");
      context.addServlet(staticHolder, "/*");
  
      server.setHandler(context);
      server.start();
      server.join();
  </code></pre>
  
  <p>Which works fine. However, if I change</p>
  
  <pre><code>    context.addServlet(staticHolder, "/*");
  </code></pre>
  
  <p>to</p>
  
  <pre><code>   context.addServlet(staticHolder, "/ui/*");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>   context.addServlet(staticHolder, "/ui");
  </code></pre>
  
  <p>or anything other than "/*" I get a 404. Basically I can see my index page at <a href="http://127.0.0.1:9999/index.html" rel="nofollow">http://127.0.0.1:9999/index.html</a>, and I would like to change it to <a href="http://127.0.0.1:9999/ui/index.html" rel="nofollow">http://127.0.0.1:9999/ui/index.html</a>.</p>
  
  <p>Thanks</p>