Use the Context.addServlet overload that takes a ServletHolder. ServletHolder is a class that accepts either a Class or a Servlet instance.
Servlet myServlet = new MyServlet();
ServletHolder holder = new ServletHolder(myServlet);
context.addServlet(holder, "/");
This assumes Jetty 6. I think it will work for Jetty 7 as well.
Justin Rudd
2008-09-16 18:25:54