Trang chủ‎ > ‎IT‎ > ‎WEB PROGRAMMING‎ > ‎

05 - JSP - Servlet

I. Online Tutorial

Reference : Decodejava.com presenting simple and easy Java tutorial.

Java Server Pages or JSP technology allows us to combine the static HTML with the Java code which makes a webpage dynamic. Hence, a JSP page consists of two parts -

  • Static content comprising of regular HTML.
  • Dynamic content comprising of Java code.

a. To understand JSP right from the scratch, you may start from here, Features of JSP - Decodejava.com

Most important topics under JSP are -

  • JSP Scripting Elements - In JSP, scripting elements are used to embed the Java code within a JSP webpage. To know more about types of scripting elements with simple code example , you may read JSP Scripting Elements
  • JSP Lifecycle - Every JSP page is first translated to a Servlet and has to go through a few more phases before it could actually take user requests and respond appropriately. To know about JSP lifecycle you may read,Lifecycle of a JSP webpage
  • JSP Directives - JSP directives are a set of directions that allow you direct how a JSP page is going to be processed and displayed. Starting with first type of JSP directiveJSP page Directive- Decodejava.com
  • JSP Actions - JSP Action tags allow you to perform some actions on a JSP page. Starting with the first type JSP Action tag JSP forward Action - Decodejava.com
  • JSP Built-in objects - JSP built-in objects are implicitly created when your JSP webpage is invoked, hence they are automatically available to use in your JSP. Starting with the first JSP built-in objectJSP request Implicit Object

b. Tutorialpoint's Tutorial: JSP Tutorial

c. The easier ones by example: Servlet(Introduction | JAVATIPS.INFO ), JSP (Introduction | JAVATIPS.INFO )

d. The expert : The Java EE 6 Tutorial

II. Books

The 2nd edition can still be downloaded for free at Murach's Java Servlets and JSP, 2nd Edition



III. Videos

You may check: What is the best source to learn jsp and servlets?





IV. Resources:
Here are best tutorials of JSP and Servlets:

JSP Tutorials:

JSP Tutorials

Introduction to JSP

JSP Tutorials - Introducing Java Server Pages Technology

JSP Architecture

JSP Actions

Writing the Date JSP

Servlets Tutorials:

Java : Servlet Tutorials

History of Web application

Introduction to Web Server

What is a Container

What is servlet?

Methods of Servlet

Life Cycle of Servlet

Features of Servlet 2.4

Features of Servlet 2.5

Features of Servlet 3.0

Advantages of Java Servlets

Advantages of Servlets over CGI

Servlet 3.0 Complete Tutorial

Thanks


Tutorialspoint examples provides best Servlet tutorial for beginners | Tutorialspoint examples tutorial for beginners with examples. Find servlet tutorials step by step in eclipse for Servlet overview.
Servlet architecture overview in java. Let us discuss more about servlet and related terms like CGI.

Life cycle of a servlet.
Java Servlet life cycle with example. Servlet life cycle methods in java. Let us discuss servlet life cycle methods with example.

Servlet interface in java with example.
Servlet interface in java. Let us discuss Java servlet interface with example in eclipse.

GenericServlet class in java with example.
GenericServlet class in java. Methods of genericservlet class. Let us study more about GenericServlet class in java with example.

HttpServlet class in java with example.
HttpServlet class in java. Methods of HttpServlet class. Let us discuss HttpServlet class in java with example.

Deployment Descriptor: web.xml file with example.
web.xml deployment descriptor file. Deployment descriptor in java servlets. Let us discuss web.xml deployment descriptor file with example.

welcome-file-list in web.xml with example.
Servlet welcome-file-list in web.xml. Let us discuss servlet welcome-file-list in java with example.

load-on-startup in web.xml with example.
Servlet load on startup in web.xml java. Let us discuss java servlet load-on-startup in web.xml with example.

RequestDispatcher interface with example.
Java Servlet Requestdispatcher interface example. How to call a servlet from another servlet. Learn java servlet requestdispatcher with forward include example.

sendRedirect in servlet with example.
Java servlet sendredirect example.Difference between sendredirect and requestdispatcher in servlet example.Learn how to use sendredirect in servlet example.

Servlet Init parameters and ServletConfig interface with example.
Java Servlet init parameters example. How to read init parameters in servlet. ServletConfig interface example.Learn servlet init parameters with example.

Servlet context parameters and ServletContext interface with example.
Java Servlet context initialization parameters. How to read context parameters in servlet. ServletContext interface example. Learn Servlet context initialization parameters with example.

Servlet Hello World Example using annotation with example.
Java Servlet hello world example using annotations in eclipse. Learn servlet annotations to eliminate web.xml configuration by Servlet Hello World Example.

Session management and cookies in servlet with example.
Session tracking in servlet with example. Servlet session management techniques. Let us discuss session management in java servlet with example.

Cookie in servlet with example.
Cookies in servlets example in java. How to use cookies in servlet. Learn java servlet session management using cookies with example.

Hidden field in servlet with example.
Hidden field in servlet example. How to set, get, use, retrieve hidden field value in servlet.Learn java servlet session management using hidden fields example.

URL rewriting in servlet with example.
Url rewriting in servlet example. How to use rewriting url in servlets. Learn session management in servlet using url rewriting with example.

HttpSession in servlet with example.
http session in servlet example. How to use, get, create httpsession in servlet. Learn session management in java servlet using http session with example.

Servlet filter in java with example.
Servlet filter example in java. Why we use filters in servlets. Let us discuss java servlet filter with example.

FilterConfig interface with example.
Servlet FilterConfig interface java. Method filterconfig interface. Let us discuss Servlet FilterConfig interface in java with example.

All java servlet example in eclipse.

Servlets Interview Questions and Answers.


V. Courses

Free Udemy Course: https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/