web.xml.
| The gateway servlet. We only ever need one servlet for a Tapestry application. And like the page and engine, there is the Tapestry provided servlet, ApplicationServlet, that we use, but the difference is that this servlet is rarely extended unlike the BasePage or the BaseEngine |
| The application declaration. The application is declared via the standard servlet <init-param>. This is where we would let Tapestry know where to find the application specification. org.apache.tapestry.application-specification is the key Tapestry will use to retrieve the specification file path. The path here is a classpath. |
| Servlet path. The path to which our servlet is mapped. User requests containing this path will be forwarded to our gateway servlet. |
Now if the application is deployed on the localhost at port 8080 at context "welcome" (and if it is error-free!), the request, http://localhost:8080/welcome/app, will display the greeting, "Welcome to Tapestry!".