zoukankan      html  css  js  c++  java
  • 《深入浅出struts》读书笔记(3)

    第十八章

    大规模的分页与排序。本章介绍了Display标签库,要使用Display标签库,需要添加commons-beanutils.jar commans-collection.jar commons-logging.jar commons-lang.jar此外还需要jstl.jar standard.jar

    Table 标签

    <display:table name=”customerList” id=”customer” pageSize=”5” requestURI=””>

    HttpServletRequest对象里的CustomerList进行检索,如果存放在session中需要如下

    <display:table name=”session.customerList” id=”customer” pageSize=”5” requestURI=””>

    Column标签

    1<display:column property=”name” title=“Custom Name”> name为列表中对象的属性

    2<display:column>//链接

             <html:link action=”/getCustomer” paramName=”customer” paramId=”CustomID”

    paramProperty=”id”>update</html:link>

    </display:column>

    setProperty标签

    <display:setProperty name=”paging.banner.palcement” value=”bottom”>

    例子:

    action里,把集合读入一个列表List中,将类别添加到session中,然后用Display标签访问。

  • 相关阅读:
    Angularjs-Forms(表单)
    Angularjs-filter(过滤器)
    Angularjs –– Expressions(表达式)
    Angular
    AngularJS
    AngularJS–Scope(作用域)
    AngularJS–service(服务)
    AngularJS--控制器(Controller)
    AngularJS指南文档
    Web 开发模式演变历史和趋势
  • 原文地址:https://www.cnblogs.com/macula7/p/1960807.html
Copyright © 2011-2022 走看看