extremeComponents Table组件快速使用方法

本文介绍如何快速在项目中部署并使用 ExtremeComponentsTable 组件,包括配置步骤及 JSP 页面的基本代码示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


 extremeComponents Table组件快速使用方法
1、在/WEB-INF/tld/下拷贝入extremecomponents.tld文件
2、项目中加入extremecomponents-1.0.1.jar文件(拷入/WEB-INF/lib/目录)
3、web.xml加入:
  <jsp-config>
      
<taglib>
          
<taglib-uri>/WEB-INF/tld/extremecomponents.tld</taglib-uri>
          
<taglib-location>/WEB-INF/tld/extremecomponents.tld</taglib-location>
      
</taglib>
      
<taglib>
          
<taglib-uri>/WEB-INF/tld/c.tld</taglib-uri>
          
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>          
      
</taglib>
  
</jsp-config>

4、jsp页代码:

<%@ page language="java" pageEncoding="GB2312"%>

<%@ taglib uri="/WEB-INF/tld/extremecomponents.tld" prefix="ex" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  
<head>
    
    
<title>ResourceList.jsp</title>

    
<meta http-equiv="pragma" content="no-cache">
    
<meta http-equiv="cache-control" content="no-cache">
    
<meta http-equiv="expires" content="0">    
    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    
<meta http-equiv="description" content="This is my page">

    
<link rel="stylesheet" type="text/css" href="<c:url value="/css/extable.css"/>"/>
    
<script type="text/javascript" src="<c:url value="/script/extable.js"/>"/>

  
</head>
  
<body>
    
<h1>资源列表</h1>
    
<ex:table 
    
items="resources"     //从request.getAttribute("resources")中获得
    action
="${pageContext.request.contextPath}/action/manager/usermanager/resourceList"  //会在排序筛选时使用到
    imagePath
="${pageContext.request.contextPath}/images/table/*.gif "
    title
="资源"
    width
="90%"
    rowsDisplayed
="10"   //每页显示行数
    filterable
="false"    //是否使用过滤
    
>
        
<ex:row highlightRow="true">
            
<ex:column property="id" title="标识"/>  //列(字段)名称(首字母小写)
            
<ex:column property="name" title="名称"/>
            
<ex:column property="resType" title="资源类型"/>
            
<ex:column property="resString" title="资源字符串"/>
            
<ex:column property="descn" title="描述"/>
        
</ex:row>
    
</ex:table>
  
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值