JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > Tags > JSP Tags
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  JSP Tags
Added by scud, last edited by Tin Steeler on Apr 19, 2006  (view change)
Labels: 
(None)

JSP标签是WebWork提供的一般Tag的扩展. 只要简单的了解这些标签的访问方式:<ww:xxx> ... </ww:xxx>(这里的xxx指WebWork支持的标签), 就可以马上开始使用了.

标签库(Tag Library)定义(TLD)

JSP TLD包含于 webwork.jar 中, 你可以按照 web.xml 文档中解释的那样定义TLD. 如果你做好了, 你可以在你的JSP中添加如下声明:

<%@ taglib prefix="ww" uri="webwork" %>

现在你可以使用标签了, 就像这样:

<ww:iterator value="people">
    <ww:property value="lastName"/>, <ww:property value="firstName"/>
</ww:iterator>
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators