Helps you transition to more productive ways to build modern web apps.
Play for Java shows you how to build Java-based web applications using the Play 2 framework. The book starts by introducing Play through a comprehensive overview example. Then, you'll look at each facet of a typical Play application, both by exploring simple code snippets and by adding to a larger running example. Along the way, you'll contrast Play and JEE patterns and learn how a stateless web application can fit seamlessly in an enterprise environment.
about this book
Part 1 Introduction and first steps
1. Chapter 1 An introduction to Play
1.1. What Play is
1.2. High-productivity web development
1.3. Reactive programming
1.4. Play 2 enterprise features
1.5. Hello Play!
1.6. The console
2. Chapter 2 The parts of an application
2.1. Introducing our application
2.2. A rundown of a Play application
2.3. Play’s configuration files
2.4. Build configuration files
2.5. Public assets
2.6. Application code
2.7. Setting up an IDE
3. Chapter 3 A basic CRUD application
3.1. Adding a controller and actions
3.2. Mapping URLs to action methods using routes
3.3. Adding a model and implementing functionality
3.4. Mocking some data
3.5. Implementing the list method
3.6. Adding the product form
3.7. Handling the form submission
3.8. Adding a delete button
Part 2 Core functionality
4. Chapter 4 An enterprise app, Play-style
4.1. Recalling what an enterprise application is
4.2. Determining today’s enterprise application challenges
4.3. Understanding Play’s application in an enterprise context
4.4. Defining our warehouse enterprise application
5. Chapter 5 Controllers—handling HTTP requests
5.1. Controllers and action methods
5.2. Returning results from action methods
5.3. Using routing to wire URLs to action methods
5.5. About scopes
6. Chapter 6 Handling user input
6.2. Data binding
6.3. Body parsers
6.5. File uploads
7. Chapter 7 Models and persistence
7.1. Modeling the real world in code
7.2. Persistence and Object-Relational Mapping (ORM)
7.3. Mapping basic entities
7.4. Mapping relationships
7.5. Querying for objects
7.6. Using JPA instead of Ebean
8. Chapter 8 Producing output with view templates
8.1. The benefits of compiled, type-safe templates
8.2. Scala template syntax
8.3. Your basic building blocks
8.4. Structuring pages with template composition
8.5. Using LESS and CoffeeScript: the asset pipeline
Part 3 Advanced topics
9. Chapter 9 Asynchronous data
9.1. What do we mean by asynchronous data?
9.2. Handling asynchronous data
9.3. Scheduling asynchronous tasks
9.4. Streaming HTTP responses
9.5. Unidirectional communication with Comet
9.6. Bidirectional communication with WebSockets
10. Chapter 10 Security
10.1. Play security concepts
10.2. Adding basic authentication with filters
10.3. Fine-grained authentication with action composition
11. Chapter 11 Modules and deployment
11.2. Splitting your application into multiple sub-applications
11.3. Deploying to production
12. Chapter 12 Testing your application
12.1. Testing Play applications
12.2. Functional testing
12.3. Integration testing
© 2014 Manning Publications Co.
About the book
For a Java developer, the Play web application framework is a breath of fresh air. With Play you get the power of Scala's strong type system and functional programming model, and a rock-solid Java API that makes it a snap to create stateless, event-driven, browser-based applications ready to deploy against your existing infrastructure.
Play for Java teaches you to build Java-based web applications using Play 2. This book starts with an overview example and then explores each facet of a typical application by discussing simple snippets as they are added to a larger example. Along the way, you'll contrast Play and JEE patterns and learn how a stateless web application can fit seamlessly in an enterprise Java environment. You'll also learn how to develop asynchronous and reactive web applications.
- Build Play 2 applications using Java
- Leverage your JEE skills
- Work in an asynchronous way
- Secure and test your Play application
About the reader
The book requires a background in Java. No knowledge of Play or of Scala is assumed.
placing your order...Don't refresh or navigate away from the page.
The easiest way to learn the easiest web framework.
The definitive guide to Play 2 for Java.
A good cocktail of theory and practical information.
An excellent tutorial on the Play 2 framework.