waterye

GvTags

GvTags makes it easy to write web applications in the new dynamic programming language Groovy. GvTags is a Groovy Tag library for Java ServerPages (JSP). GvTags might be for the Groovy programming language what the combination of JSTL and Struts is for Java, or Smarty is for PHP.

官方站点: http://gvtags.berlios.de/cgi-bin/gvtagswiki.pl

最新版本是0.1.1

下载了源码包看了一下, 还是挺有意思的.

<gv:import class='org.gvtags.examples.counter.Counter' />
<gv:bean var='c' class='Counter' scope='session' />
<gv:formbean var='formBean' />
<gv:code>
    if (formBean.submit != null) {
        // handle input
        switch(formBean.submit.trim()) {
            case "+":
                c.increment()
                break
            case "-":
                c.decrement()
                break
            case "Reset":
                c.reset()
                break
        }
    }
</gv:code>

大部分源码是groovy写的

posted on 2005-09-05 18:45 waterye 阅读(611) 评论(1)  编辑  收藏 所属分类: groovy

Feedback

# re: GvTags 2005-11-18 10:26 Water Ye

new release 0.2.0  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: