A basic "Hello World" servlet written in Scala, with example specs. Easier than bootstrapping your own Maven config, etc.
Scala
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of peat:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Scala Servlet

This is an example servlet written in pure Scala. I wrote it as a jumping off point for simple Scala web apps, and you're welcome to reuse it however you like.

It also includes the Maven config for running Specs, plus an example.

Common Commands

  • mvn test - runs the Specs.
  • mvn jetty:run - runs the app in Jetty (point your browser to http://localhost:8080/example/)
  • mvn war:war - builds a .war file for the app.

What's Next?

I'll update the app when Scala 2.8 and Specs are released as stable. If you'd like to contribute any of your own tricks or configuration options, you're welcome to!