Download standard.jar (taglib) from Maven

The standard.jar (taglib) library is used to enable the JSTL expression language in JSP page, and it’s always used together with the jstl.jar together.


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
....
</html>

To download both standard.jar and jstl.jar from Maven, just put the following Maven coordinate in the pom.xml file.


	<!-- standard.jar --> 
	<dependency>
		<groupId>taglibs</groupId>
		<artifactId>standard</artifactId>
		<version>1.1.2</version>
	</dependency>
	
	<!-- JSTL --> 
	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>jstl</artifactId>
		<version>1.1.2</version>
	</dependency>
Both libraries are available in the Maven central repository, but some claimed that they can not find it ?

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

Leave a Reply

avatar
newest oldest most voted
Tidy Cats this coupon site
Guest
Tidy Cats this coupon site

Hey! This post could not be written any better!
Reading this post reminds me of my previous room mate!
He always kept talking about this. I will forward this page to him.
Pretty sure he will have a good read. Thank you for sharing!

Jenifer
Guest
Jenifer

Do you mind if I quote a few of your articles as long as I provide credit and
sources back to your website? My website is in the very same niche as yours and
my users would truly benefit from a lot of the information you present here.

Please let me know if this okay with you. Appreciate
it!

Tom Hunter
Guest
Tom Hunter

Folks,
Actually the link you gave is for using the Servlet 2.5 (JSTL 1.2) versions:

   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

For using Servlet 2.3 (JSTL 1.1.2) version you need this taglib:

   <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

Notice that for JSTL 1.2 it adds the directory /jsp to the Taglib path.

CoolRunner
Guest
CoolRunner

Hi Tom,

Mkyomg is correct. Pls check the link. http://stackoverflow.com/tags/jstl/info

JSTl 1.1: composed of same JAR files as 1.0. Taglib URI includes /jsp in the path like http://java.sun.com/jsp/jstl/core. Came along with and requires at minimum Servlet 2.4 / JSP 2.0.