Created
October 27, 2010 20:55
-
-
Save casualjim/649965 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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