@@ -40,12 +40,6 @@
-
-
-
-
-
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags.jsp
new file mode 100644
index 000000000000..f5defd101e6b
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags.jsp
@@ -0,0 +1,92 @@
+<%@ page import="java.util.Random" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <% int x = Integer.valueOf("a");%>
+
+
+
+ The exception is : ${exceptionThrown}
+ There is an exception: ${exceptionThrown.message}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags_redirect.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags_redirect.jsp
new file mode 100644
index 000000000000..e8ab0a60c6ed
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/core_tags_redirect.jsp
@@ -0,0 +1,16 @@
+<%@ page import="java.util.Random" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/formatting_tags.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/formatting_tags.jsp
new file mode 100644
index 000000000000..1b5cb93cf2c3
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/formatting_tags.jsp
@@ -0,0 +1,213 @@
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Formatted Number - Currency:
+
+
Formatted Number - Maximum Integer Digits:
+
+
Formatted Number - Maximum Fraction Digits:
+
+
Formatted Number - Grouping:
+
+
Formatted Number - Percent with Maximum Integer Digits:
+
+
Formatted Number - Percent with Minimum Fraction Digits:
+
+
Formatted Number Percent with Minimum Integer Digits:
+
+
Formatted Number - with Pattern:
+
+
Formatted Number - Currency with Internationalization :
+
+
+
+
+
+
+
+
+
+
+
Parsed Number :
+
+
Parsed Number - with Integer Only set to True:
+
+
+
+
+
+
+
+
Formatted Date - with type set to time:
+
+
Formatted Date - with type set to date:
+
+
Formatted Date - with type set to both:
+
+
Formatted Date - with short style for both date and time:
+
+
Formatted Date - with medium style for both date and time:
+
+
Formatted Date - with long style for both date and time:
+
+
Formatted Date - with pattern:
+
+
+
+
+
+
+
+
+
+
Parsed Date:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+ Time being formatted:
+
+
+
+
+ |
+
+
+
+
+ |
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
Current Date with Default Time Zone:
+
Change Time Zone to GMT+9
+
+
Date in Changed Zone:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/function_tags.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/function_tags.jsp
new file mode 100644
index 000000000000..d45bfd1d516e
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/function_tags.jsp
@@ -0,0 +1,151 @@
+<%@ page import="java.util.Random" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix = "fn"
+ uri = "http://java.sun.com/jsp/jstl/functions" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Found 'first' in string
+
+
+
+
+
+
+
+ Found 'first' string
+
+
+
+ Found 'FIRST' string
+
+
+
+
+
+
+
+ String ends with 'string'
+
+
+
+
+
+
+
With escapeXml() Function:
+
string (1) : ${fn:escapeXml(string1)}
+
string (2) : ${fn:escapeXml(string2)}
+
+
Without escapeXml() Function:
+
string (1) : ${string1}
+
string (2) : ${string2}
+
+
+
+
+
+
Index (1) : ${fn:indexOf(string1, "first")}
+
Index (2) : ${fn:indexOf(string2, "second")}
+
+
+
+
+
+
+
+
Final String : ${string4}
+
+
+
+
+
+
Length of String (1) : ${fn:length(string1)}
+
Length of String (2) : ${fn:length(string2)}
+
+
+
+
+
+
+
Final String : ${string3}
+
+
+
+
+
+
+ String starts with 'This'
+
+
+
+
+
+
+
+
+
Final sub string : ${string3}
+
+
+
+
+
+
+
+
Final sub string : ${string3}
+
+
+
+
+
+
+
+
Final sub string : ${string3}
+
+
+
+
+
+
+
+
Final string : ${string3}
+
+
+
+
+
+
+
+
Final string : ${string3}
+
+
+
+
+
+
+
String (1) Length : ${fn:length(string1)}
+
+
+
String (2) Length : ${fn:length(string2)}
+
Final string : "${string2}"
+
+
+
\ No newline at end of file
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/sql_tags.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/sql_tags.jsp
new file mode 100644
index 000000000000..df10e41c0412
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/sql_tags.jsp
@@ -0,0 +1,198 @@
+<%@ page import="java.util.Random" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * from USERS;
+
+
+
+ | User ID |
+ First Name |
+ Last Name |
+ Email |
+ Registered |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO USERS(first_name, last_name, email) VALUES ('Grace', 'Adams', 'gracea@domain.com');
+
+
+ SELECT * from USERS;
+
+
+
+ | User ID |
+ First Name |
+ Last Name |
+ Email |
+ Registered |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+ DELETE FROM USERS WHERE email = ?
+
+
+
+ SELECT * from USERS;
+
+
+
+ | User ID |
+ First Name |
+ Last Name |
+ Email |
+ Registered |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+ <%
+ Date registered = new Date("2018/03/31");
+ String email = "patrick@baeldung.com";
+ %>
+
+
+ UPDATE Users SET registered = ? WHERE email = ?
+
+
+
+
+ SELECT * from USERS;
+
+
+
+ | User ID |
+ First Name |
+ Last Name |
+ Email |
+ Registered |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+ UPDATE Users SET first_name = 'Patrick-Ellis' WHERE email='patrick@baeldung.com'
+
+
+
+ UPDATE Users SET last_name = 'Nelson' WHERE email = 'patrick@baeldung.com'
+
+
+
+ INSERT INTO Users(first_name, last_name, email) VALUES ('Grace', 'Adams', 'gracea@domain.com');
+
+
+
+ SELECT * from USERS;
+
+
+
+ | User ID |
+ First Name |
+ Last Name |
+ Email |
+ Registered |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/xml_tags.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/xml_tags.jsp
new file mode 100644
index 000000000000..9d93c3c190ad
--- /dev/null
+++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/xml_tags.jsp
@@ -0,0 +1,99 @@
+<%@ page import="java.util.Random" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.util.Calendar" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Store Items:
+
+
+ -
+ Steve Madden
+ Sneakers
+ 34
+
+
+ -
+ Pearl Izumi
+ Sneakers
+ 80
+
+
+ -
+ Katy Perry
+ Heels
+ 72
+
+
+
+
+
+
The name of the first item listed in the store is:
+
with price $
+
+
+
+
The second item is :
+
+
+
+ Document has at least one
+ - element.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Item category is Sneakers
+
+
+
+ Item category is Heels
+
+
+
+ Unknown category.
+
+
+
+
+
+
\ No newline at end of file