Learning notes of Request (belonging to Servlet learning course)
When the browser accesses the server, it will encapsulate the parameter data, protocol version and request header information submitted by the user into a request message (i.e. request packet) and send it to the server.
The Request message received by the server (such as Tomcat) will be encapsulated in the Request object. Programmers can ge ...
Posted by crimsonmoon on Mon, 07 Mar 2022 03:05:30 +0100
Nine built-in objects of JSP in JavaWeb
3, Nine built-in objects of JSP
What are built-in objects? The built-in objects of JSP refer to the built-in Java objects in the JSP page system by default. These objects can be used without explicit declaration by developers. In JSP pages, you can access each other with JSP pages and Servlet environment by accessing JSP built-in objects. Each ...
Posted by StormTheGates on Wed, 02 Feb 2022 19:10:02 +0100
Who suspended my Python multiprocess
Recently, I encountered a process suspension problem when using Python's multiprocessing module. Let's record it here.
First, the minimum code of a multi process application is given.
import multiprocessing as mp
def produce(q):
"""producer"""
for i in [1, 2, 3, 4, 5, 6, 7, 8, 9]:
q.put(i)
print(f"Producer quit.")
def c ...
Posted by anon_login_001 on Thu, 23 Dec 2021 21:32:10 +0100
[actual case of crawler] simply implement crawler requirements based on Requests+Xpath+Pandas
Foreword
Share a case of using some crawler technology to simply crawl articles from media web pages as needed and save them to the local designated folder for reference only. In the learning process, do not visit the website frequently and cause web page paralysis. Do what you can!!!
Crawling demand
Crawl address: Construction Archives - c ...
Posted by teomanersan on Thu, 23 Dec 2021 05:57:29 +0100
Java Web supplement: the difference between request forwarding, request inclusion and request redirection
Request forwarding
Request forwarding: after a request from the client arrives, it is found that other servlets are needed to realize the function.
The client browser sends a request to servlet a to realize some functions with the help of servlet a, but servlet a cannot complete this function. At this time, it finds that servlet B can real ...
Posted by mike_y on Fri, 19 Nov 2021 09:19:32 +0100