You are viewing the documentation for the 2.8.22 release in the 2.8.x series of releases. The latest stable release series is 3.0.x.
§Main concepts for Java
This section introduces you to the most common aspects of writing a Play application in Java. 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 Java and Scala are separated into different packages. All the Java APIs are under the
play
package; all the Scala APIs are underplay.api
. For example, the Java MVC API is underplay.mvc
and the Scala MVC API is underplay.api.mvc
.
Configuration API
HTTP programming
- Actions, Controllers and Results
- HTTP Routing
- Manipulating HTTP results
- Session and Flash scopes
- Body parsers
- Actions composition
- Content negotiation
- HTTP Request Handlers / ActionCreator
Asynchronous HTTP programming
The Twirl template engine
Form submission and validation
Working with Json
Working with XML
Handling file upload
Accessing an SQL database
- Accessing an SQL Database
- Using an in memory H2 database
- Managing database evolutions
- Using JPA to access your database
Using the Cache
Calling REST APIs with Play WS
Integrating with Akka
Internationalization with Messages
Dependency Injection
Application Settings
Testing your application
- Writing tests
- Writing functional tests
- Testing with Guice
- Testing with databases
- Testing web service clients
Logging
Next: Configuration API