What is a template engine?
[function] the template engine is created to separate the user interface from the business data (content). It can separate the Servlet Java code and Html web page code (this is the advantage of the template engine compared with the Servlet directly returning to the dynamic page)
Principle / process
Added by prakash911 on Thu, 10 Mar 2022 08:53:45 +0200
Introduction to Java Web
Web: global wide area network, also known as the world wide web (www), a website that can be accessed through a browser. JavaWeb: use Java technology to solve the technology stack in the field of web and Internet. B/S architecture: Browser/Server architecture mode. Its feature is that the client only needs a browser ...
Added by running_out_of_imagination on Sun, 27 Feb 2022 10:18:05 +0200
After reading some articles on the Internet, I feel that it is too theoretical. Now let's briefly talk about the life cycle of Servlet, and then verify it with code.
When the browser accesses the server, the server parses the url. If the browser does not want static resources, the server accesses the corresponding Servlet according to the URI. ...
Added by ginoitalo on Thu, 24 Feb 2022 17:38:24 +0200
We talked about handling global exceptions in spring MVC. Of course, spring boot also has global exception handling.
I Custom processing common 404 and 505 pages.
For example, if we enter a path that does not exist in the program, we will jump to the interface that cannot be found in 404.
In fact, s ...
Added by Loki_d20 on Fri, 11 Feb 2022 12:58:23 +0200
1, Servlet core interfaces and classes
1.1 Servlet interface
1.2 GenericServlet abstract class
1.3. HttpServlet class (recommended)
2, Two configurations of servlet s
2.1 configuring web XML (used before servlet 2.5)
2.2 # using annotations (supported after servlet 3.0, recommended)
1, Servlet core interfaces and c ...
Added by genericnumber1 on Fri, 11 Feb 2022 12:32:16 +0200
1. What is a Servlet 1. Servlet is one of the Java EE specifications. A specification is an interface 2. Servlet is one of the three major components of Java Web. The three components are: servlet program, Filter filter and Listener listener. 3. Servlet is a java applet running on the server. It can receive the request sent by the client and re ...
Added by xenoalien on Tue, 08 Feb 2022 23:54:56 +0200
◼ Filter s can dynamically intercept requests and responses. ◼ Application scenario: filter sensitive words, prevent SQL injection, set character encoding, and perform URL level Other permissions, access control, compression response information, etc.
Filter programming step 1: create a filter class
◼ Write a Java class to imp ...
Added by jarvis on Tue, 08 Feb 2022 15:19:27 +0200
This object allows you to read the web. Initialization parameters configured in xml.
Why put parameter information on the web? XML file? A: Make your program more flexible [change the profile web.xml without changing the program code]
Get the web. Parameter information for XML file configuration
web.xml configur ...
(1) It comes from the interface under Servlet specification and exists in Servlet API in Tomcat Jar package
(2) The developer is responsible for providing the Filter interface implementation class, but the Http server is not responsible for providing it
(3) The Filter interface intercepts the Http server before calling the reso ...
Added by solaris77 on Mon, 31 Jan 2022 07:51:45 +0200
Project type: JAVA WEB project User type: administrator + ordinary user Main technology: Jsp+Servlet+MySQL+Tomcat Front end html+css Style: LayUI is used Development tool: Eclipse (configuration information is required for Idea import) Corresponding environment introduction: jdk1 8 + MySQL 5.7 + Tomcat (MySQL connector 8.0.jar needs to be repla ...
Added by lobski on Sat, 22 Jan 2022 21:38:54 +0200