List of Figures

 

Chapter 1. Introduction

Figure 1.1. "Hello world" output

Figure 1.2. Hello World in your browser

Chapter 2. A taste of Scalatra

Figure 2.1. Bacon Ipsum

Figure 2.2. Scalatra and a few related technologies

Figure 2.3. A new Scalatra project

Figure 2.4. Following a route in the browser

Figure 2.5. Generating a 404 message

Figure 2.6. The default Scalatra 404 page

Figure 2.7. Views in your project structure

Figure 2.8. Create a show.ssp template.

Figure 2.9. Template output using SSP

Figure 2.10. Adding a layout

Figure 2.11. You’ve got tests!

Figure 2.12. Test output

Figure 2.13. A compile error in the test terminal

Figure 2.14. A failure of expectations

Figure 2.15. Packaging a WAR file

Chapter 3. Routing

Figure 3.1. Anatomy of a route

Figure 3.2. Tracing a request for The_Rolling_Stones

Chapter 4. Working with user input

Figure 4.1. A YouTube search with highlighted query string parameters

Figure 4.2. GitHub uses path parameters heavily in its repository browser.

Figure 4.3. An exception resulting from bad input

Figure 4.4. The holy grail

Figure 4.5. Halt with a response body

Chapter 5. Handling JSON

Figure 5.1. A JSON document as a JValue

Chapter 6. Handling files

Figure 6.1. User interface for the document store example

Chapter 7. Server-side templating

Figure 7.1. In a traditional website, the client is served directly by Scalatra.

Figure 7.2. A RESTful API: a single Scalatra service serving disparate clients

Chapter 10. Working with a database