Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created October 27, 2010 20:55
Show Gist options
  • Save casualjim/649965 to your computer and use it in GitHub Desktop.
Save casualjim/649965 to your computer and use it in GitHub Desktop.
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))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment