Skip to content

Application configuration

webdevwilson edited this page Dec 28, 2010 · 4 revisions

Configuration Options

a few configution options are available

  • set the application root directory with Graffiti.root 'public'
  • add a jar to the classpath with Graffiti.classpath << 'resin.jar'

Mapping Servlets

don't want to reinvent the wheel?

  Graffiti.serve ('*.graffiti', com.goodercode.servlet.MyServlet ) {
    setInitParameter 'myinitparam', 'thevalue'
  }

serve will also take a servlet name or instance

the config block is executed as org.mortbay.jetty.servlet.ServletHolder

Clone this wiki locally