servlet
1. When to set the encoding For example, you have a text box in the page, and you have a servlet called requestdemo06 (the virtual path is / requestDemo06), You want to get the value of the name text box. If you input a Chinese character into the text box and you don't set the code, the output UTF-8...
Posted by jammesz on Sun, 23 May 2021 05:35:19 +0930
Why use filters or interceptors? In short, when an account needs to enter a system to call an interface, we need to verify it. Otherwise, once the interface is exposed, the system may crash. At this time, we need to use interceptors to authenticate the calling interface. Simple use of servlet fUTF-8...
Posted by Waxxy on Tue, 29 Jun 2021 07:05:06 +0930
It realizes the function of students' attendance and clock in. Teachers can see the situation of students who don't punch in in time. Including the addition, deletion and modification of check-in and punch in, and the addition, deletion and modification of student information. Main technology: UTF-8...
Posted by kjtocool on Wed, 21 Jul 2021 03:35:52 +0930
1. Simple Servlet demo (project name Servlet) The project catalog is as follows 1. maven adds dependent packages javax.servlet javax.servlet-api 4.0.1 provided 2. Write server-side Servlet pUTF-8...
Posted by stuffradio on Thu, 22 Jul 2021 01:54:52 +0930
1. Class loader Class 1.1 loader [understanding] effect Be responsible for loading. class files (stored physical files) into memory 1.2 class loading process [understanding] Class loading timing Create an instance (object) of a classCall the class method of the classAccess or assign a value to UTF-8...
Posted by antonyjohn on Sun, 25 Jul 2021 09:35:23 +0930
request Request object 1. ServletRequest in service method in GenericServlet abstract class 2. HttpServletRequest in doGet and doPost methods in HttpServlet abstract class Requested resource Method for requesting object to obtain path //Get virtual directory String contextPath = req.getContextPUTF-8...
Posted by masgas on Thu, 29 Jul 2021 05:01:02 +0930
forward: Conclusion: Forwarding is to get the content of the jump page and render it on your own page. The following will explain it with drawingThe domain name does not jump to B.jsp, but the domain name bound by servlet classUsing forwarding will continue to execute the code after the forwardUTF-8...
Posted by ambrennan on Fri, 30 Jul 2021 05:10:26 +0930
1.Jsp overview JSP, the full name of Java Server Pages, is a dynamic web page development technology. It can return html data page instead of Servlet. 2. Visit the Jsp page 3. Instruction of JSP header JSP instructions are used to set the properties related to the entire JSP page.
Posted by dotMoe on Mon, 09 Aug 2021 03:30:21 +0930
preface A series of materials released by me are for learning, backup and use, and convenient for review in the future. With the continuous improvement of technology, each article will continue to add content or expand articles. This is to uphold the mentality of sharing, learn from each otherUTF-8...
Posted by cpjok on Fri, 17 Dec 2021 02:25:10 +1030
/* *Background login function steps: *- receive the request from the client (the parameter contains user information) * 1. Judge whether all user information is filled in completely: *- if the parameter is empty: *Set the message model object to the request scope by returning results (setting sUTF-8...
Posted by monkeytooth on Fri, 17 Dec 2021 07:48:44 +1030