Simple JSTL application in Netbeans 8

Let’s start create new project in Netbeans IDE. Choose from menu File->New Project.

x1In New Project window select on the left panel Java Web element and on the right panel choose Web Application.

x2Click the Next button.

In New Web Application window in Project Name write NewJSTL name.c1Click the Next button.

From the Server list select your server.

c2Click the Next button.

c3Click the Finish button. In Projects window You see all files for yours project.

c4But if you need used JSTL you must add library. In Netbeans 8 it will be in it. But if you must downloading it you may go to  website. Click the Download link.


First click JSTL API link.

c6And download javax.servlet.jsp.jstl-api-1.2.1.jar file.

c7Next click the JSTL Implementation link.

c8And choose to download javax.servlet.jsp.jstl-1.2.1.jar file.

c9We don’t downloading this library, because in Netbeans 8 it will be. In Projects window under your project node right click Libraries node.

c10The Add Library window show up.


Choose JSTL name and click the Add Library. In tree of project you see them.

c12In this moment You may implement JSTL application.

Open index.jsp file and paste into it:

<%@taglib uri=”” prefix=”c”%>

on the top of page.

Into body tags paste either;

<c:out value=”It is JSTL first page!” />

It is all code for index.jsp file:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="" prefix="c"%> 
<!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <h1>JSTL page</h1>
        <p><c:out value="It is JSTL first page!" /></p>

c13Then you may run your application.