1. 说明与编写规范

    1. application 文件名称必须与 web.xml 里配置的 servlet(com.ailk.web.servlet.PageServlet或子类)相同,否则报错
    2. application 文件里 engine-class 必须是 com.ailk.web.BaseEngine 或其子类
    3. application 文件里 page 元素的 name 必须唯一,否则报错
    4. application 文件里 page 元素的 specification-path 必须与实际目录匹配,否则报错
  2. 标准模板

    <?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" [
    ]>
    
    <application engine-class="com.ailk.web.BaseEngine" name="demo">
    	<description>Demo Application</description>
      
    	<property name="org.apache.tapestry.disable-caching" value="true"/>
    	<property name="org.apache.tapestry.enable-reset-service" value="true"/>
    	<property name="org.apache.tapestry.template-encoding" value="UTF-8"/>
    	<property name="org.apache.tapestry.output-encoding" value="UTF-8"/>
    	<property name="org.apache.tapestry.page-login" value="Home"/>
    	<property name="org.apache.tapestry.page-main" value="Desktop"/>
    	<property name="org.apache.tapestry.page-exception" value="Exception"/>
    	<property name="org.a.tapestry.visit-class">com.ailk.common.data.impl.Visit</property>
      
    	<page specification-path="/CustDemo.page" name="CustDemo" version="1212"/>
      
    </>