Basic implementation of Servlet
preface
Understand the implementation of Servlet and some source code analysis, and understand the source code and function of ServletConfig and ServletContext.
1, Servlet
1. What is a Servlet
1) A set of specifications defined by Java EE, a specification that processes and responds to requests sent by processing clients, that is, ...
Posted by bluebutterflyofyourmind on Tue, 30 Nov 2021 03:11:40 -0800
Javaweb-11 listener listener, JDBC interface, PreparedStatement object
catalogue
1, Listener introduction
Listener introduction
What is a listener
Related concepts of monitoring mechanism
Introduction to web listener
2, Listen to the lifecycle of domain objects
Implementation steps
1. Create a listener and implement the listener interface
2. Add listener information
3 ...
Posted by anups on Fri, 26 Nov 2021 15:18:29 -0800
javaWeb: Servlet from scratch
Servlet
1. The essence of Servlet
Servlet is essentially a java interface. By implementing the servlet interface, the custom servlet class can accept the data submitted by the client, respond to the client's request and output information to the client.
2. Function
Read explicit data sent by the client (browser). This includes HTML forms o ...
Posted by storyteller on Fri, 19 Nov 2021 07:30:21 -0800
What is a servlet? The power node servlet tutorial takes you to a quick introduction to actual combat
A component specification (server-side Java application) developed by sun company to expand the functions of web server. It is independent of platform and protocol, and can generate dynamic web pages. It acts as an intermediate layer between client requests (web browsers or other HTTP clients) and server responses (databases or applications on ...
Posted by jkraft10 on Wed, 17 Nov 2021 23:23:57 -0800
session, simple usage of filter, file upload
1. Open eclipse to establish a dynamic website
2. Create a new index.html under WebContent and modify the access path
(1) Normally, you need to add an html name, such as http://localhost:8080/index.html To access the page, now want to http://localhost:8080 Direct access
(2) Write code in html
<!DOCTYPE html>
<html>
< ...
Posted by s4salman on Wed, 10 Nov 2021 21:29:06 -0800
Servlet realizes login function
Servlet realizes login function
Title:
Create a project, use servlet a to complete a login page, and when the user enters the user name and password on the login page, send it to servlet B, After servlet B obtains the user name and password, it creates a correct user name and password in the Web.xml file as shared static data in advance Se ...
Posted by Plasma on Sat, 23 Oct 2021 07:14:59 -0700
Servlet Part 3 [introduction to request and response, common applications of response]
response and request objects
Tomcat receives the http request from the client and creates a request object representing the request and a response object representing the response for each request
Since the request object represents the http request, we can get the data submitted by the browser and find the request object. The response o ...
Posted by alco19357 on Fri, 22 Oct 2021 08:16:34 -0700
JAVAWEB training and writing MVC framework
catalogue
1. What is the MVC framework?
1.1 MVC programming mode
1.2 MVC processing flow
2. Write a simple MVC framework
2.1 notes
2.2 processor mapper HandlerMapping
2.3 dispatcher servlet of central controller
2.4 combing MVC process
3. Source code
1. What is the MVC framework?
MVC begins to exist in desktop a ...
Posted by zubinkasad on Wed, 06 Oct 2021 17:13:00 -0700
jsp - initial jsp and servlet
1, JSP
JSP is a special file format. It can embed Java code in html, but it is essentially a subclass of Servlet
JSP execution process: The browser requests JSP from the server - > the server finds the corresponding JSP file - > translates it into Java code and compiles it for execution - > returns the execution result to the se ...
Posted by gerrydewar on Sun, 19 Sep 2021 04:18:36 -0700