Skip to content

Commit

Permalink
small tutorial updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Oct 24, 2013
1 parent 87a9ba3 commit e550638
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tutorial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ <h2> View the App</h2>

Once the application has been compiled and the server started, your application can be accessed at: <a href="http://localhost:9000" target="_blank">http://localhost:9000</a><br/>
Check in <a href="#run" class="shortcut">Run</a> to see the server status.<br/>
This example app stores and displays a list of "Bar" objects in a database.
</p>
</div>
<div>
<h2>Handling Requests</h2>

<p>
When you make an HTTP request to that URL, the Play server figures out what code to execute which will handle the request and return a response. In this application the request handler for requests to the root URL (e.g. "/") are handled by a Java Controller. You can use Java and Scala to create your controllers.<br/>
Controllers asynchronously return HTTP responses of any content type (i.e. HTML, JSON, binary). To see a JSON response produced by a Scala controller, click the "Get JSON Message" button. This uses AJAX via jQuery to get data from the server and then display that on the web page.
</p>
Expand Down

0 comments on commit e550638

Please sign in to comment.