Java Servlets and JSP - Build Java EE(JEE) app in 25 Steps

Servlets and JSP Tutorial for Beginners
4.4 (149 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
2,073 students enrolled Bestselling in JavaServer Pages
75% off
Take This Course
  • Lectures 35
  • Length 3.5 hours
  • Skill Level Beginner Level
  • Languages English, captions
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 1/2016 English Closed captions available

Course Description


16 out of 24 Reviews are 5 Star - Last updated 03/23/2016

"It's so easy to follow and you learn seamlessly by examples"

"Simple and perfect. I would recommend for any one who wants to begin Java web development"

"I'd strongly recommend to all the beginners to go through this tutorial. It helps in clearing side dish technologies for Java. The quality is good and the instructor really explained very clearly. Thanks!"

"Perfect for a beginner to understand the basics & to continue interest in web application development !! Thanks :)"

Course Description

Developing your first Java Web Application using JSP and Servlets is fun.

In this course, you will learn the basics developing a Basic Todo Management Application using Java Servlets and JSP with Login and Logout functionalities.

You will build a Dynamic Website using the Core technologies of Java Web Programming. You will understand the basic concepts of Java Web Application Development - HTTP protocol, Request-Response cycle, Java Servlets, JSPs.

You will build the website step by step - in more than 25 steps. This course would be a perfect first step as an introduction to Java Web Application Development.

We will be using Tomcat Web Server and Eclipse IDE. We will help you set these up.

You will learn

  • Basic Web Application Architecture - Model 1 and Model 2 MVC
  • Basics of Java EE - Servlets, JSP, Scriptlets, JSTL, web dot xml and EL
  • Basic Flow of a Web Application, Forms, Request and Response
  • Basics of creating a Web Page using CSS and HTML
  • Basics of using Maven, Tomcat and Eclipse
  • Difference between Session and Request Scopes


  • Step 01 : Up and running with a Web Application in Tomcat
  • Step 02 : First JSP
  • Step 03 : Adding a Get Parameter name
  • Step 04 : Adding another Get Parameter Password
  • Step 05 : Let's add a form
  • Step 06 : New Form and doPost
  • Step 07 : Adding Password and Validation of User Id / Password combination
  • Step 08 : Adding a TodoService and Todos to welcome page
  • Step 09 : Bit of Refactoring - Packages
  • Step 10 : Redirect from One Servlet to another - New TodoServlet.
  • Step 11 : First JSTL Tag : Using a Loop around todos
  • Step 12 : Difference between Session and Request Scopes
  • Step 13 : Add a New Todo
  • Step 14 : Delete Todo with equals and hashcode methods
  • Step 15 : Adding webjars for jquery and bootstrap
  • Step 16 : Missing Step :) We want you to take a break. Nothing in here..
  • Step 17 : Updating Bootstrap to 3.3.6
  • Step 18 : More Refactoring
  • Step 19 : Adding a Filter for More Security.
  • Step 20 : Logout
  • Step 21 : Theory : Understand Maven and Tomcat
  • Step 22 : Theory : Servlet LifeCycle
  • Step 23 : Theory : Model 1 and Model 2 MVC Architectures
  • Step 24 : Moving Add Functionality to a New Page.
  • Step 25 : Add Category Field
  • Step 26 : Format the JSPs better.
  • Step 27 : JSP Fragments

We do NOT interact with a Database in this Beginner’s Course.

What are the requirements?

  • You are expected to be familiar with Java.
  • You are NOT expected to have any experience with Eclipse,Maven or Tomcat.
  • We will help you install Eclipse and get up and running with Maven and Tomcat.

What am I going to get from this course?

  • Build a Basic Todo Management Application piece by piece in 25 Steps.
  • Understand Basic Web Application Architecture
  • Understand and use Basics of Java EE - Servlets, JSP, Scriptlets, JSTL, web.xml and EL
  • Understand Servlet LifeCycle
  • Use HttpRequest - GET/POST, Request Parameters
  • Understand HTTP Response - Response Status - 404,200,500 etc
  • Understand HTML Forms - Method, Action & Form Data
  • Understand Basics of using Maven, Tomcat and Eclipse
  • Understand Difference between Session and Request Scopes
  • Use Maven for Basic Dependency Management
  • Run Web Application in Tomcat
  • Style web applications with Bootstrap (Basics)
  • Use Filters to intercept Request

Who is the target audience?

  • You are looking forward to developing your first Java Web Application
  • You have some experience with Java Web Applications but did not completely understand the basics
  • You want to learn basics of JSP and Servlets

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction to Your First Java Servlets and JSP Web Application in 25 Steps

Github Repository link :

Section 2: Web Application Basics
Step 01 : Setting up Your First Java Web Application
Step 01 : Theory 1 - Maven and Magic
Step 01 : Theory 2 - What is a Servlet?
Step 01 : Theory 3 - Web Application Request Flow
Step 01 : Theory 4 - Understand Your First Servlet - LoginServlet
Step 02 : Create LoginServlet From Scratch Again and Your First View
Step 02 : Theory - Play Time - Let's Try Breaking Things
Step 03 : Passing Request Parameters using Get Method
Step 03 : Theory - Introduction and End to Scriptlets
Step 04 : Disadvantages of Get Parameters
Section 3: More Basics : Request Methods Get/Post and Servlets
Step 05 : Your First Post Request
Step 06 : Your First Servlet doPost Method
Step 07 : Lets Add a Password Field
Step 08 : Let's Add Todos to Welcome Page
Step 09 : Take a Breather and Refactor
Step 10 : Redirecting to Another Servlet
Section 4: Adding More Java Web Application Features
Step 11 : Your First JSTL Tag
Step 12 : Session Scope vs Request Scope
Step 13 : Add new Todo Functionality
Step 14 : Add delete Todo Functionality
Step 15 : Import Bootstrap and JQuery with WebJars.
Step 17 : Playing around with Bootstrap
Step 18 : Let's Clean up and Refactor
Step 19 : Adding a Filter
Step 20 : Adding Logout Functionality
Section 5: Let's Take in Some Theory
Step 21 : Let's understand Maven and Tomcat
Step 22 : Servlet Life Cycle
Step 23 : Model 1 and Model 2 (MVC) Architectures
Section 6: Let's get back to Building the Application Again
Step 24 : Refactoring - Move Add Functionality to New Servlet
Step 25 : Adding Category Field
Step 26 : Using JSP Fragments for Header, Footer & Navigation
Next Steps
Our Best Courses : Bonus Lecture

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

in28Minutes Official, Popular Java Instructor - 52,000+ Students

About Me

I'm Ranga Karanam, an Architect with 15 Years of Java programming and design  with major banking clients across the world. 

We started in28Minutes with the aim to create Hands-on Courses with Real World Projects. Step-By-Step series of Courses is one of our creations.

About in28Minutes

We use Problem-Solution based Step-By-Step Hands-on Approach With Practical, Real World Application Examples.

While our primary expertise is on Development, Design & Architecture of Java & Related Frameworks (Spring, Spring MVC, Struts, Hibernate) we are expanding into the front-end world (Bootstrap, JQuery, Angular JS).

Our Beliefs

Best Courses are interactive and fun.

Foundations for building high quality applications are best laid down while learning.

Our Approach

We love open source and therefore, All our code is open source too and available on Github.

We use 80-20 Rule. We discuss 20% things used 80% of time in depth. We touch upon other things briefly equipping you with enough knowledge to find out more on your own.

Problem Solution based Step by Step Hands-on Learning.

Ready to start learning?
Take This Course