VOOZH about

URL: https://www.geeksforgeeks.org/java/creating-jsp-in-eclipse-ide-with-tomcat-server/

⇱ Creating JSP in Eclipse IDE with Tomcat Server - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Creating JSP in Eclipse IDE with Tomcat Server

Last Updated : 13 May, 2026

JavaServer Pages (JSP) is a technology used to create dynamic web pages using Java and HTML. Eclipse IDE provides an easy environment for developing JSP applications, while Apache Tomcat acts as the web server to run and test them efficiently.

  • Create and configure a Dynamic Web Project in Eclipse
  • Add and configure the Apache Tomcat Server
  • Create, run, and test a JSP page successfully

Steps to Create JSP in Eclipse IDE with Tomcat

The process includes three main steps:

  1. Create a Dynamic Web Project
  2. Create a JSP File
  3. Run the Project on Tomcat Server

Step 1: Create a Dynamic Web Project

  • Go to File -> New -> Dynamic Web Project
  • Enter the Project Name (e.g., HelloWorld)
  • Select the Target Runtime (Apache Tomcat)
👁 Image

click Next -> Finish as pictorially depicted below.

👁 Image
👁 Image

Now you can see your project in the Project Explorer Workspace.

👁 Image

Step 2: Create a JSP File

  • Expand the project in Project Explorer
  • Right-click on the project -> New -> JSP File
  • Enter file name (e.g., index.jsp)
👁 Image
👁 Image

Now, Write File Name, e.g. index. Then Click Next.

👁 Image

Then, click Finish button.

👁 Image

Now, the JSP File is created. Now we can write code here.

👁 Image

Step 3: Run the Project on Tomcat Server

  • Right-click on the project
  • Select Run As ->Run on Server
👁 Image

Choose tomcat server. Then Click Next.

👁 Image

Click Add All -> Finish.

👁 Image

Now, you can see that Java Server Pages (JSP) is running successfully as shown below. Hence we are able to achieve our goal in creating JSP in Eclipse IDE with Tomcat server.

👁 Image

The application runs at:

http://localhost:8080/HelloWorld/index.jsp

Comment
Article Tags:
Article Tags: