Tapestry

博客介绍了Tapestry与MVC相关内容。Tapestry组件充当控制器,是pure - domain objects和HTML模板间的媒介。页面通过属性表达式连接模式层和表现层,属性表达式使用开源框架OGNL,其主要用于读取和更新Java Bean属性。
 

上午写完了,却存盘失败了,只好重写。

先转一段,

1)  TapestryMVC

Tapestry组件扮演着控制器Controller的角色,是模式层(Model)中pure-domain objects和包含有组件的HTML模板之间的媒介。大多数情况下,这种方式应用于页面(页面也是Tapestry组件),但是在某些情况中,一个组件拥有自己的模板,包含着更多的组件,并且支持与使用者的互交。

页面通过配置一系列属性表达式(Property expressions)连接模式层和表现层。属性表达式使用另外一种开源框架OGNLObject Graph Navigation Language)。OGNL的开源工程(project)独立于Tapestry,但是在Tapestry中起很重要的作用。OGNL主要的目的在于读取和更新对象的Java Bean属性。


看domian object又不懂,再转一段:
Domain Object The best definition of "domain object" I've found in literature is in Chapter 11 of TimHoward 's book TheSmalltalkDevelopersGuideToVisualWorks pp.379-381:

"a domain object is a logical container of purely domain information, usually represents a logical entity in the problem domain space ... In general, domain objects should know how to
  • recognize which [of their] references indicate aggregation and which ones indicate association
  • copy themselves
  • maintain business logic
  • compare themselves to other domain objects of the same type
  • facilitate other objects that choose to print or display them
  • conduct tests on their domain information"

To this list I would add
  • identify themselves
  • validate themselves

-- RandyStafford

I would also add
  • domain objects direct their persistence
  • there may be collections of Domain objects
  • domain object may contain references to other domain objects (this is assumed by the first one above).

--Fritz Schenk

上网查web表现控制方面的资料,看到了,没有细究:

理解一下:

1、Tapestry现在是jakarta的一个web的application framework

2、基于组件的框架。

3、由servlet和html组成的。

4、html(表现)在使用前从池中调出,被组件这个controller加以渲染(结合model),从而完成mvc的过程。

5、解决jsp中嵌入程序的问题。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值