tapestry5tapestry5
按照步骤在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>
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-30900-1.html
等着你们的舞台回归秀
男女比例已经严重失衡
快去操谢作死家的女人去