JSTL(JSP Standard Tag Library)이란 커스텀 태그 중 가장 많이 사용되는 태그를 표준화하여 라이브러리로 제공 한 것을 뜻합니다.

 

톰캣에서 제공되는 것이 아니기 때문에 라이브러리를 직접 다운받아야합니다.

 

https://tomcat.apache.org/download-taglibs.cgi

 

Apache Tomcat® - Apache Taglibs Downloads

Welcome to the Apache Taglibs download page. This page provides download links for obtaining the latest version of the Apache Standard Taglib, as well as links to the archives of older releases. You must verify the integrity of the downloaded files. We pro

tomcat.apache.org

 

맨 밑에 내려가면 파일 네개가 있는데 네개를 전부 다운받고, 라이브러리에 등록하면 JSTL을 사용할 수 있습니다.

 

 

 

jar형식의 첨부파일을 받으면 됩니다.

 

네 개의 파일을 모두 드래그해서(혹은 복사해서)

 

 

project -> WebContent -> WEB-INF -> lib에 파일을 넣어주면 됩니다.

 

 

JSTL의 대표적인 기능으로 core, format 태그가 있으며,

 

core는 자바코드를 구현하여 사용하는 JSP의 코드를 코어라이브러리를 이용하여 태그로 대체할 수 있습니다. core태그의 기능은 set, remove, if, choose, forEach, forTokens, import, redirect, url, catch, out 등이 있습니다.

 

format은 timeZone, setTimeZone, formatNumber, formatDate 등 있으며, 숫자 또는 날짜와 관련되어있습니다.

 

 

 

 

'코딩 > JSP' 카테고리의 다른 글

JSTL Core tag(2)  (0) 2020.07.16
JSTL Core tag(1)  (0) 2020.07.15
jsp:useBean  (0) 2020.07.10
XML. HTML과 다른점은?  (0) 2020.07.10
JSP scope  (0) 2020.07.09
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기