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标签访问。

  • 相关阅读:
    kubernetes集群-04测试kubernetes集群
    kubernetes集群-03网络calico
    kubernetes集群-02部署Master Node
    kubernetes集群-01基础设置(v1.18.0)
    AWS CLI 安装
    如何理解AWS ELB
    AWS-CLI-Command
    terraform 常用命令
    terraform 初始化
    Excel设置下拉框
  • 原文地址:https://www.cnblogs.com/macula7/p/1960807.html
Copyright © 2011-2022 走看看