网站首页 新闻首页 网页设计图形动画软件编程网站开发办公软件操作系统数据库网络技术认证考试范文资料黑客攻防 书籍教程 进入论坛

MVC框架Apache-Tapestry5的初体验

http://www.diybl.com/ 2008-12-24  网络 点击:  [ 评论 ]
文章搜索:    【点击打包该文章】

下载地址: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>

欢迎光临DIY部落,点击这里查看更多文章教程   【点击打包该文章】
如果图片或页面不能正常显示请点击这里 站内搜索:   

文章评论

请您留言

 

最新新闻