Showing content from https://www.playframework.com/documentation/latest/ScalaHome below:
Website Navigation
Scala Home - 3.0.x
Browse versions Browse APIs Language Main concepts
Play for Scala developers
Working with Play
Home
- Home
- Working with Play
- Play for Scala developers
- Main concepts
§Main concepts for Scala
This section introduces you to the most common aspects of writing a Play application in Scala. You’ll learn about handling HTTP requests, sending HTTP responses, working with different types of data, using databases and much more.
Note: The Play APIs for Scala and Java are separated into different packages. All the Scala APIs are under the play.api
package; all the Java APIs are under play
. For example, the Scala MVC API is under play.api.mvc
and the Java MVC API is under play.mvc
.
Configuration API
- The Configuration API
HTTP programming
- Actions, Controllers and Results
- HTTP Routing
- Manipulating HTTP results
- Session and Flash scopes
- Body parsers
- Actions composition
- Content negotiation
- Handling errors
Asynchronous HTTP programming
- Asynchronous results
- Streaming HTTP responses
- Comet
- WebSockets
The Twirl template engine
- Templates syntax
- Dependency Injection with Templates
- Common use cases
- Custom format
Form submission and validation
- Handling form submission
- Protecting against CSRF
- Custom Validations
- Custom Field Constructors
Working with Json
- JSON basics
- JSON with HTTP
- JSON Reads/Writes/Format Combinators
- JSON automated mapping
- JSON Transformers
Working with XML
- Handling and serving XML requests
Handling file upload
- Direct upload and multipart/form-data
Accessing an SQL database
- Accessing an SQL Database
- Using Slick to access your database
- Using Play Slick
- Play Slick migration guide
- Play Slick advanced topics
- Play Slick FAQ
- Using Anorm to access your database
Using the Cache
- Using the Cache
Calling REST APIs with Play WS
- The Play WS API
- Connecting to OpenID services
- Accessing resources protected by OAuth
Integrating with Pekko
- Integrating with Pekko
Internationalization with Messages
- Internationalization with Messages
Dependency Injection
- Dependency Injection with Guice
- Compile Time Dependency Injection
Application Settings
- Application Settings
- HTTP request handlers
- Essential Actions
- HTTP filters
Testing your application
- Testing your Application
- Testing with ScalaTest
- Writing functional tests with ScalaTest
- Testing with specs2
- Writing functional tests with specs2
- Testing with Guice
- Testing with compile-time Dependency Injection
- Testing with databases
- Testing web service clients
Logging
- Logging
Next: Configuration API
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.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4