Spring MVC with JSP (Java server Page). Spring-Ep:12

Опубликовано: 03 Август 2026
на канале: Ajoy Debnath
118
7

Hi,
Hope you are all doing great. Let's learn together.

Join Telegram: 📲 https://t.me/contactajoydebnath

Chapters❤
0:00 Introduction
02:08 JSP Theory and Spring MVC. Previous Video Discussion
16:31 JSP Page Directive
56:59 JSP Include Directive
59:33 JSP Taglib Directive and JSTL

Note:
Spring is a lightweight framework. It was developed by Rod Johnson in 2003. Spring framework makes the easy development of JavaEE applications.

Video Links:
Core Java Playlist:
   • Core Java  

Spring Playlist:
   • Spring Framework  

Document Link -
Spring MVC
https://docs.google.com/document/d/16...

JSP
https://docs.google.com/document/d/1G...

Like, Comment, Share, and Subscribe.
Thank you again.

STS Link:
https://spring.io/tools

Eclips Download
https://www.eclipse.org/downloads/pac...

Tomcat Download
https://tomcat.apache.org/download-90...

JDK Link:
https://www.oracle.com/java/technolog...

To download spring jars
https://repo.spring.io/ui/native/rele...

MYSql Connector JAR
https://mvnrepository.com/artifact/my...

MYSql Installer
https://dev.mysql.com/downloads/insta...

JSP
JSP technology is used to create web applications just like Servlet technology.
It is an extension of Servlet because it provides more functionality than servlet such as expression language, JSTL, etc.
A JSP page consists of HTML tags and JSP tags.

A JSP page services requests as a servlet. Thus, the life cycle and many of the capabilities of JSP pages (in particular the dynamic aspects) are determined by Java Servlet technology.

JSP directives
JSP directives are used to give special instruction to a container for translation of JSP to servlet code.

There are three types of directives:
page directive
include directive
taglib directive

JSP page directive
The page directive defines attributes that apply to an entire JSP page.

Different Page directive
import -- used to import class and interface,it is similar to import keyword in java class.
isELIgnored -- We can ignore the Expression Language (EL) in jsp by the isELIgnored attribute.
language -- The language attribute specifies the scripting language used in the JSP page.
isThreadSafe -- Servlet and JSP both are multithreaded.If you want to control this behavior of JSP page, you can use isThreadSafe attribute of page directive.The value of isThreadSafe value is true.If you make it false, the web container will serialize the multiple requests, i.e. it will wait until the JSP finishes responding to a request before passing another request to it.
errorPage -- The errorPage attribute is used to define the error page, if an exception occurs in the current page, it will be redirected to the error page.
isErrorPage -- The isErrorPage attribute is used to declare that the current page is the error page.
Note: The exception object can only be used in the error page.
session -- The session attribute indicates whether or not the JSP page uses HTTP sessions.
contentType -- The contentType attribute defines the MIME(Multipurpose Internet Mail Extension) type of the HTTP response.
A MIME type is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).
extends -- The extends attribute defines the parent class that will be inherited by the generated servlet.
info -- This attribute simply sets the information of the JSP page which is retrieved later by using getServletInfo() method of Servlet interface.
buffer -- The buffer attribute sets the buffer size in kilobytes to handle output generated by the JSP page.
autoFlush -- The autoFlush attribute specifies whether the buffered output should be flushed automatically when the buffer is filled, or whether an exception should be raised to indicate the buffer overflow.
pageEncoding -- the page encoding is the character encoding in which the file is encoded.

Jsp Include Directive
The include directive is used to include the contents of any resource it may be jsp file, html file or text file.

JSP Taglib directive
The JSP taglib directive is used to define a tag library that defines many tags.

JSTL (JSP Standard Tag Library)
The JSP Standard Tag Library (JSTL) represents a set of tags to simplify the JSP development.

Core tags : The JSTL core tag provides variable support, URL management, flow control, etc.
Function tags : The functions tags provide support for string manipulation and string length. The URL for the functions tags is http://java.sun.com/jsp/jstl/functions and the prefix is fn.
Formatting tags : The Formatting tags provide support for message formatting, number and date formatting, etc.
XML and SQL tag