This is an example of using Play framework to implement the GET method for submitting search queries.
The URL http://localhost:9000/search will give you the search box.
Upon on clicking the search button, the browser will append ?q=<whatever search query that was entered> to the URL and refreshes the page.
The new URL after submission will be http://localhost:9000/search?q=<whatever search query that was entered> and play framwork renders the result page as defined in the controller.