2.5. Application Specification

Welcome.application. 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application
    PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
    "http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd"> 1 

<application engine-class="org.apache.tapestry.engine.BaseEngine"> 2 
    <page name="Home" specification-path="Home.page" /> 3 
</application>

1

Tapestry specification document type definition. Tapestry has a single DTD for application specification, page specification and component specification that it validates against.

2

The engine. engine-class identifies the engine for the application. Here again, like the page class, Tapestry has a base implementation of the engine BaseEngine that we can use as-is and will be sufficient in most cases.

3

The page declaration. This is where we would let Tapestry know of all the pages used in the application and the locations where Tapestry can find them. The specification-path here is relative to the WEB-INF folder.

The naming convention for the application specification is, the name of the application with a .application extension and hence the name Welcome.application.