飞云小侠的个人博客

欢迎你到这里来

« 截取部分Html的Java类 | Main | 植物园的郁金香 Tulip in Arboretum(2007-4-21) »

Freemarker + Tiles/SiteMesh
2007/05/09,14:56
How about Struts/Webwork , Freemarker, Tiles vs SiteMesh?

In Struts, we can use struts easily,  and we also need decorator framework.

Do some tests:

 

 FrameworkSelect Customize Page Can How Rate 
 Struts Freemarker only
 Use  Yes

 Layout  in all files

 Simple logic 1

 1
 Struts Freemarker+tiles Not use  Yes  Layout in Tiles  --
 Struts Freemarker + tiles
 Use  Yes 

 Layout in Tiles and Page 

 Simple logic 2

 2
 Struts

 Freemarker + Sitemesh

(not use Tiles)

 Use  Yes 

 Layout in SiteMesh and Page

 Metedata in customize page

 Simple logic 1

 Can't use tiles.insert 

 1.5
 Webwork/Struts2Freemarker + Sitemesh  Use Can

 Layout in SiteMesh and Page

 Metedata in customize page

 Logic 3? 

 2

Other factors

 SiteMesh:  decorate by URL, support regular expression match

 Tiles: need decorate by page for every page

 

If you can't understand, just ignore this article. 

 

最新回复

 
Support by JavaScud