Repository navigation
Application configuration
webdevwilson edited this page Dec 28, 2010
·
4 revisions
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'
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