2.1. Application Layout

Welcome application layout. 

Tapestry allows for a very flexible layout of the application structure. Except when stipulated by the servlet specification, we can pretty much place our resources anywhere within the context!

In this example, we will place our files as shown in the figure above. Welcome is the web application context, Home.html is the template (placed right under the context folder), Home.page is the page specification (placed under the WEB-INF folder) and Welcome.application is the application specification (also placed under the WEB-INF folder). These are the default locations that Tapestry will be looking in for the respective files, if it is not instructed to find them elsewhere. Finally, web.xml is the standard servlet deployment descriptor that is placed under the WEB-INF folder as per the servlet specification.