Git Product home page Git Product logo

feilong-taglib's Introduction

feilong-taglib JSP常用自定义标签集

License JDK 1.7

Reduce development, Release ideas (减少开发,释放**)

简介

封装了常用的自定义标签

主要由两部分组成

🐀 Common

包含所有自定义标签的base类,以及常用的自定义标签el function

taglib 说明
isContains 判断一个值,是否在一个集合(或者可以被转成Iterator)当中
isInTime 判断一个日期(date),是否在一个时间区间内(beginDate,endDate)

🐪 Display

taglib 说明
pager J2EE分页解决方案
concat jsp版本的 "css/js合并以及版本控制"的标签
option 用来基于 i18n配置文件,渲染select option选项,实现国际化功能,简化开发
loadBundle 将i18n配置文件,转成map,加载到request 作用域, 实现国际化功能,简化开发
sensitive 敏感数据mask标签
barcode @Deprecated 用来在页面生成二维码

🐉 Maven使用配置

taglib jar你可以直接在 仓库 浏览

如果你使用 maven, 您可以通过以下方式来配置 pom.xml:

<project>

	....
	<properties>
		<version.feilong-platform>1.13.0</version.feilong-platform>
		....
	</properties>
	
	....
	<repositories>
		<repository>
			<id>feilong-repository</id>
			<url>https://raw.github.com/venusdrogon/feilong-platform/repository</url>
		</repository>
	</repositories>
	
	....
	<dependencies>
		....
		
		<!--feilong-taglib -->
		<dependency>
			<groupId>com.feilong.platform</groupId>
			<artifactId>feilong-taglib</artifactId>
			<version>${version.feilong-platform}</version>
		</dependency>
		....
	</dependencies>
	
	....
	
</project>

此外强烈建议你使用 feilong 工具类全家桶(含IO操作,Net操作,Json,XML,自定义标签等等工具类)

<project>

	....
	<properties>
		<version.feilong-platform>1.13.0</version.feilong-platform>
		....
	</properties>

	....
	<repositories>
		<repository>
			<id>feilong-repository</id>
			<url>https://raw.github.com/venusdrogon/feilong-platform/repository</url>
		</repository>
	</repositories>

	....
	<dependencies>
		....
		<dependency>
			<groupId>com.feilong.platform</groupId>
			<artifactId>feilong-util-all</artifactId>
			<version>${version.feilong-platform}</version>
		</dependency>
		....
	</dependencies>
	....
</project>

使用示例:

两行代码搞定分页显示

	<%@ taglib prefix="feilongDisplay" uri="http://java.feilong.com/tags-display"%>
	....
	<feilongDisplay:pager count="${count}"/>
	....

更多说明,参见 pager

How to install?

有些小伙伴想下载并自行install 进行研究, 你需要执行以下4个步骤:

git clone https://github.com/venusdrogon/feilong-platform.git --depth 1
mvn install -f feilong-platform/pom.xml

git clone https://github.com/venusdrogon/feilong-taglib.git --depth 1
mvn install -f feilong-taglib/pom.xml

详细参考 https://github.com/venusdrogon/feilong-taglib/wiki/install

📝 说明

  1. 基于 Apache2 协议,您可以下载代码用于闭源项目,但每个修改的过的文件必须放置版权说明;
  2. 1.5.0及以上版本需要jdk1.7及以上环境(1.5.0以下版本需要jdk1.6及以上环境);

🌀 feilong 即时交流

QQ 群 243306798

🐼 About

如果您对本项目有任何建议和批评,可以使用下面的联系方式:

feilong-taglib's People

Contributors

venusdrogon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.