Simple JSTL application in Netbeans 8

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

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

Click the Next button.

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

From the Server list select your server.

Click the Next button.

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

But 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 https://jstl.java.net/  website. Click the Download link.

First click JSTL API link.

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

Next click the JSTL Implementation link.

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

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

The Add Library window show up.

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

In this moment You may implement JSTL application.

Open index.jsp file and paste into it:

On the top of page.

Into body tags paste either;

It is all code for index.jsp file:



 


    
        
        JSTL
    
    
        

JSTL page

       

   

Then you may run your application.