Getting request information
When we talk about a request to a web application, we are talking about an HTTP request that a browser makes to our server. The server will take the context path and route the request to the appropriate application. An important part of the HTTP request is the URL used to access the application and its resources. To better digest the knowledge contained in this chapter, let's see some important parts of a URL:
We will learn how to take advantage of the three last ones (path info, parameter, and fragment) in order to develop navigable applications with Vaadin.
Path info
If we can use Vaadin to develop website-like applications, we must be able to build a simple website like the following:
This is a website consisting of three pages:
Welcome: The default Vaadin component shown when the last part of the URL is empty. This is what we have done in the previous chapters.
Page 1: A Vaadin component shown when the URL finishes with
page1
.Page 2: A Vaadin component shown when...