casualjim
10/27/2010 - 8:55 PM

gistfile1.scala

package org.scalatra.ssgi.servlet

import javax.servlet.ServletConfig
import javax.servlet.http.{HttpServletResponse, HttpServletRequest, HttpServlet}
import org.scalatra.ssgi.Application

class SsgiServlet extends HttpServlet {

  override def init(config: ServletConfig) {

  }

  override def service(req: HttpServletRequest, resp: HttpServletResponse) = {
    // Do something here. get the current application
    val app = new Application {}
    app(new ServletRequest(req))
  }
}