【apache之Tapestry 介绍】

A component-oriented framework for creating highly scalable web applications in Java.



 

Java Power

Tapestry pages and components are simple Java POJOs, with easy access to all Java language features and the vast Java ecosystem. Thanks to Java's advanced concurrency API, Tapestry handles requests fast without sacrificing security or stability.

Scripting Ease(脚本轻松)

Tapestry features live class reloading: change your Java code, refresh the browser and see the changes... instantly! Have your cake and eat it too: the speed and depth of Java, the agile development style of Ruby or Python.

Super Productivity(超级生产力)

Simple POJO classes, streamlined templates, live class reloading, state-of-the-art exception reporting, first-class Ajax support, and a big library of built-in components: Tapestry is designed from the ground up to give you great productivity.

扫描二维码关注公众号,回复: 257747 查看本文章

Tapestry框架是一个位于java servlet容器和Tapestry应用程序之间的层。Tapestry不是一个独立运行的服务器;它是一个servlet的扩展,它运行于servlet容器(例如Tomcat)或包含servlet容器的应用服务器中(如Jboss,Websphere,或者WebLogic). Tapestry应用其实是由一系列页面组成,而每个页面是由可以复用的组件构成。

Tapestry是一种基于java的Web应用程序框架。Tapestry采用了组件的概念。程序员可以应用现有的组件或自定义应用程序相关的组件来构建应用程序。相对与现有的其他Web应用程序框架而言,应用Tapestry会让程序员从烦琐的,不必要的底层代码中解放出来。

Tapestry使用组件库替代了标签库,没有标签库概念,从而避免了标签库和组件结合的问题。Tapestry是完全组件化的框架。Tapestry只有组件或页面两个概念,因此,链接跳转目标要么是组件,要么是页面,没有多余的path概念。组件名,也就是对象名称,组件名称和path名称合二为一。

Tapestry在整个环境中的位置;应用程序由可复用组件构成的页组成。应用程序运行在应用服务器中。对应用服务器而言,Tapestry应用只不过是其他类型的servlet而已。

Web应用通常按照三个层面来实现,每一个层面都针对应用中不同的问题。

Φ 展现层的职责是负责接受请求和产生HTML的响应;

Φ 应用层的职责是负责所有的业务逻辑;这一层通常用EJB来实现;

Φ 数据库层的职责是负责持久地存储数据;

Tapestry的组件逻辑比较复杂,再加上OGNL表达式和属性指定机制,因而难以添加注释。

1、Tapestry是一个全面web application框架,是使用JAVA写的。

2、Tapestry不是一个application server,Tapestry是一个使用在application server中的框架。

3、Tapestry不是一个application,Tapestry是一个用来创建web application的框架。

4、Tapestry不是JSP的一种使用方式,Tapestry和JSP只能够选择一种。

5、Tapestry不是一个脚本环境,Tapestry使用一种组件对象模式(component object model),这并不是一种简单的脚本,而是用于生成高动态性高互交性的web页面。

猜你喜欢

转载自gaojingsong.iteye.com/blog/2375972