Return to Snippet

Revision: 3121
at June 4, 2007 06:02 by thebugslayer


Initial Code
//Needs both jetty.jar and jett-util.jar
import org.mortbay.jetty.*
import org.mortbay.jetty.servlet.*
import groovy.servlet.*

def server = new Server(8080)   
def root = new Context(server,"/",Context.SESSIONS)
root.setResourceBase(".")
root.addServlet(new ServletHolder(new TemplateServlet()), "*.html")
server.start()

Initial URL

                                

Initial Description

                                

Initial Title
Tiny WebContainer/Server

Initial Tags
server

Initial Language
Groovy