com.github.sejoung:navigator

Navigator

License

License

GroupId

GroupId

com.github.sejoung
ArtifactId

ArtifactId

navigator
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

com.github.sejoung:navigator
Navigator
Project URL

Project URL

https://github.com/sejoung
Source Code Management

Source Code Management

http://github.com/sejoung/navigator-jsp-taglib-bootstrap/tree/master

Download navigator

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.sejoung/navigator/ -->
<dependency>
    <groupId>com.github.sejoung</groupId>
    <artifactId>navigator</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.sejoung/navigator/
implementation 'com.github.sejoung:navigator:1.0'
// https://jarcasting.com/artifacts/com.github.sejoung/navigator/
implementation ("com.github.sejoung:navigator:1.0")
'com.github.sejoung:navigator:jar:1.0'
<dependency org="com.github.sejoung" name="navigator" rev="1.0">
  <artifact name="navigator" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.sejoung', module='navigator', version='1.0')
)
libraryDependencies += "com.github.sejoung" % "navigator" % "1.0"
[com.github.sejoung/navigator "1.0"]

Dependencies

provided (2)

Group / Artifact Type Version
javax.servlet : servlet-api jar 2.5
javax.servlet.jsp : jsp-api jar 2.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

페이징 테그 라이브러리 부트스트랩 적용

부트스트랩을 적용해서 페이징 테크라이브러리를 만듬

function goPage(page){
	
	document.getElementById('page').value = page;
	document.frm.submit();
	
}

자바스크립트 function을 정의 해놓았다 goPage라는 펑션에 이동할 페이지번호를 넘기도록 코딩해 놓음 위에 펑션을 정의해서 쓰면 된다.

<%@ taglib prefix="navi" uri="http://github.com/sejoung/navigator-jsp-taglib-bootstrap" %>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

<navi:navigator currentPage="1" countPerPage="2" pagePerBlock="10" totalRecordCount="3" />

maven pom.xml에 추가

	    <!-- 페이징 라이브러리 추가 -->
	  <dependency>
			<groupId>com.github.sejoung</groupId>
			<artifactId>navigator</artifactId>
			<version>1.0</version>
		</dependency>

currentPage : 현재페이지 번호 (0부터 시작)

countPerPage : 페이지에 보이는 리스트 갯수

pagePerBlock : 페이징에서 보이는 갯수

totalRecordCount : 전체 카운트

https://issues.sonatype.org/browse/OSSRH-28168

위에 라이브러리는 메이븐 중앙 저장소에 업로드 되어 있습니다.

Versions

Version
1.0