Sample applications in play
The Play binary package comes with a comprehensive set of sample applications written in both Java and Scala. This is a very good place to look for code snippets and examples. Hello world This is a very basic application that demonstrates Play fundamentals: Writing controllers and actions. Routing and reverse routing. Linking to public assets. Using the template engine. Handling forms with validation. Computer database This is a classic CRUD application, backed by a JDBC database. It demonstrates: accessing a JDBC database, using Ebean in Java and Anorm in Scala table pagination and CRUD forms integrating with a CSS framework ( Twitter Bootstrap ). Twitter Bootstrap requires a different form layout to the default layout provided by the Play 2.0 form helper, so this application also provides an example of integrating a custom form input constructor. Forms This is a dummy application presenting several typical form usages. It demon