tapestry3.0例子

web.xmlhtml

<?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"[
	<!ENTITY page SYSTEM "page.application">
]>
<application name="demo" engine-class="org.apache.tapestry.engine.BaseEngine">
	<description>Demo Application</description>
    
	&page;
    <page name="demo.result" specification-path="/page/Result.page"/>
</application>

Home.javajava

package com;

import org.apache.tapestry.html.BasePage;

public class Home extends BasePage{

    public String getHelloWorld(){
        return "Hello world";
    }
}

其餘看:web

相關文章
相關標籤/搜索