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))
}
}