Basic learning of struts 2 Framework -- basic introduction

Overview of Struts What is Struts Struts2 is a Web application framework based on MVC design pattern, which is essentially a servlet. In MVC design pattern, Struts2 is used as controller to establish data interaction between model and view. Struts 2 is the next generation product of struts. It is a ...

Posted on Tue, 18 Feb 2020 04:41:11 -0500 by adamgram

Listener, filter (interceptor) learning

Knowledge points 1. listener 1.1 role a. It can monitor the initialization and destruction of the scope; b. You can listen to the creation, modification, and deletion of attributes in the scope (request, session, application). 1.2 operation steps Step 1: write a listening class to implement t ...

Posted on Sun, 16 Feb 2020 03:50:59 -0500 by Sillysoft

Get the dynamic header data and submit it to the background through ajax

Originally thought that only need to do dynamic header query, did not expect to do addition, deletion and change Because it is a dynamic header and a union primary key, so far there is no clue how to do it Think of where to write, hope to have a big man to guide you. To create a new page: java: @RequestMapping(value = "/toEdit ...

Posted on Sat, 15 Feb 2020 11:14:05 -0500 by bseven

Servlet file upload and download (detailed case)

Learning reference link Servlet file upload File upload download file upload with Jsp+Servlet Native Servlet file upload and download Servlet file upload and download This article uses the famous file upload and download component implementation under Apache org.apache.commons.fileupload org.apac ...

Posted on Fri, 14 Feb 2020 11:05:35 -0500 by ZachEdwards

Login and registration system based on struts 2 and Hibernate

File structure of the projectlogin.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="s" uri="/struts-tags" %> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title><s:text name="Be based on SH Applic ...

Posted on Thu, 13 Feb 2020 07:19:59 -0500 by linux_pickle

Alipay computer website payment interface simple test with sandbox

My simple test using springboot+jsp Payment document of official computer website https://docs.open.alipay.com/270 First, add the dependency, configuration files and tool classes of the Alipay interface. <!-- Alipay payment interface dependency --> <dependency> <groupId>com.alipay.sdk</groupId> <artifactId> ...

Posted on Thu, 13 Feb 2020 02:41:34 -0500 by Smruthi

Python crawler crawling dynamic JS web page stock information

Preparatory work In this case, we use two basic libraries required by python crawler, one is requests library, the other is beautiful soup library. It is assumed that these two libraries have been installed. If not, they can be installed through pip. Next, let's briefly talk about the functions of the ...

Posted on Tue, 11 Feb 2020 10:30:45 -0500 by crickettdt

Source reading starts from the most familiar spring MVC -- initialization of ContextLoaderListener

When I first started with spring MVC, I felt very strong. When I started to learn web development, I wrote a simple web program. To inherit HttpServlet and rewrite its init, doGet, doPost and other methods, I also need to configure servlet mapping in the web.xml file. When using spring MVC, our developm ...

Posted on Tue, 11 Feb 2020 09:18:26 -0500 by shooka

SSM Integration (spring+springMVC+mybatis)

SSM Integration What is SSM That is, technology that integrates the three frameworks of Spring, Spring MVC and Mybatis. Integrative thinking Build an integrated environment Set up the spring configuration first Reuse spring to integrate the spring MVC framework Finally, use Spring to integrate t ...

Posted on Mon, 10 Feb 2020 22:29:50 -0500 by jdh

Java file upload: common file upload upload component

Reference Reprint: https://www.cnblogs.com/longqingyang/p/5579889.html Principle: The common fileUpload component uses the DiskFileItemFactory factory method to generate a request form content parser, which parses the form content into a list < fileitem >, and then circularly obtains the inp ...

Posted on Wed, 05 Feb 2020 10:59:44 -0500 by toibs