[Tapestry5] tapestry5.1 打开http://localhsot:8080/HelloTapestry/Start 出现404错误

凌寒_微雨 2011-06-02
按照步骤在Myeclipse下做的可就是不行,Start不能用,大家帮忙看看怎么回事
web.xml为:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Hello Tapestry</display-name>
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>example.hellotapestry</param-value>
</context-param>
<filter>
<filter-name>app</filter-name>
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
Start.java 为:
package example.hellotapestry.pages;

public class Start {

    public String getGreeting(){
        return "Hello Tapestry!";
    }
}
Start.tml 为:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
${prop:greeting}
</html>
fantify 2011-06-07
用Index.java和Index.tml试试呢?
凌寒_微雨 2011-06-08
可以了,不知是哪里出的问题,我重新建了个工程,有写了一次就对了,谢谢了
Global site tag (gtag.js) - Google Analytics