MVC框架Apache-Tapestry5的初体验
http://www.diybl.com/ 2008-12-24 网络 点击:
[ 评论 ]
文章搜索:
【点击打包该文章】
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns=http://java.sun.com/xml/ns/j2ee
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Tapestry 5 Tutorial</display-name>
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>com.tapestry.tutorial</param-value>
</context-param>
<filter>
<filter-name>app</filter-name>
<filter-class>org.apache.tapestry.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
下载地址:http://tapestry.apache.org/download.html
注意:Tapestry5尚处在开发阶段,目前的最新版本为5.0.9。
代码如下:
web.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns=http://java.sun.com/xml/ns/j2ee
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Tapestry 5 Tutorial</display-name>
<context-param>
<param-name>tapestry.app-package</param-name>
<param-value>com.tapestry.tutorial</param-value>
</context-param>
<filter>
<filter-name>app</filter-name>
<filter-class>org.apache.tapestry.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
如果图片或页面不能正常显示请点击这里 站内搜索:
推荐文章 |
