Documentation

You are viewing the documentation for the 2.0.x release series. The latest stable release series is 3.0.x.

§Play 2.0 for Scala developers

The Scala API for Play 2.0 application developers is available in the play.api package.

The API available directly inside the play package (such as play.mvc) is reserved for Java developers. As a Scala developer, look at play.api.mvc.

§Main concepts

  1. HTTP programming
    1. Actions, Controllers and Results
    2. HTTP routing
    3. Manipulating results
    4. Session and Flash scopes
    5. Body parsers
    6. Actions composition
  2. Asynchronous HTTP programming
    1. Handling asynchronous results
    2. Streaming HTTP responses
    3. Comet sockets
    4. WebSockets
  3. The template engine
    1. Templates syntax
    2. Common use cases
  4. HTTP form submission and validation
    1. Form definitions
    2. Using the form template helpers
  5. Working with Json
    1. The Play Json library
    2. Handling and serving Json requests
    3. The Play Json Library with Generics
  6. Working with XML
    1. Handling and serving XML requests
  7. Handling file upload
    1. Direct upload and multipart/form-data
  8. Accessing an SQL database
    1. Configuring and using JDBC
    2. Using Anorm to access your database
    3. Integrating with other database access libraries
  9. Using the Cache
    1. The Play cache API
  10. Calling WebServices
    1. The Play WS API
    2. Connecting to OpenID services
    3. Accessing resources protected by OAuth
  11. Integrating with Akka
    1. Setting up Actors and scheduling asynchronous tasks
  12. Internationalization
    1. Messages externalisation and i18n
  13. The application Global object
    1. Application global settings
    2. Intercepting requests
  14. Testing your application
    1. Writing tests
    2. Writing functional tests

§Advanced topics

  1. Handling data streams reactively
    1. Iteratees
    2. Enumerators
    3. Enumeratees

§Tutorials

  1. Your first application

Found an error in this documentation? The source code for this page can be found here. After reading the documentation guidelines, please feel free to contribute a pull request. Have questions or advice to share? Go to our community forums to start a conversation with the community.