Struts 2 -- detailed explanation of struts.xml configuration file

introduce Struts.xml is the core configuration file of struts 2 framework, which is mainly used to configure the correspondence between Action and request, as well as logical view and physical view (logical view is the element configured in struts.xml file, and its name attribute value is the logical view name; physical view refers to th ...

Posted by ronniebrown on Mon, 06 Dec 2021 20:22:31 +0100

Framework vulnerability Series 1: struts vulnerability summary

preface: The loopholes reproduced in this article are not particularly comprehensive, but the loopholes in the last two years have been selected for reproduction in order to effectively reproduce the loopholes. After all, some old loopholes basically do not exist. 1, Introduction to Struts 1. Introduction Basic introduction: Struts is Ap ...

Posted by Lucidnight on Fri, 03 Dec 2021 15:57:53 +0100

Struts of SSH Framework

Preface: last time, I shared Maven of SSH framework with you. Today, I share struts of SSH framework with you. Struts is very similar to the custom MVC shared with you earlier, but there are also differences. Next, I will share my knowledge with you 1, Clear objectives:         1. struts configuration     &nbsp ...

Posted by Kyori on Wed, 13 Oct 2021 16:22:35 +0200

chain,redirect,dispatcher of ResultType of struts 2

1 Result and ResultType in struts 2 In short, result is a string returned after the Action is executed. It indicates where the next page is after the Action is executed. Result is just a string, which is only used to indicate the next page. How can we get to the next page? How can the next page correctly display the results? This should le ...

Posted by asgsoft on Sat, 25 Sep 2021 13:30:58 +0200

jy-03-JAVASE02 -- Java serialization

This article focuses on Java serialization. If you are interested in Java serialization, you can study it. 1, The role of Java serialization Sometimes we want to transfer a Java object into a byte stream, and sometimes we want to restore a Java object from a byte stream. For example, sometimes we want to When we write a Java object to the h ...

Posted by hwmetzger on Sat, 25 Sep 2021 07:18:21 +0200

Learning notes of ArrayList class in Java (learning common function usage)

ArrayList class The ArrayList class is a special array - a dynamic array. From the System.Collections namespace; By adding and deleting elements, the length of the array can be changed dynamically. characteristic: Fast search and fast traversalAdding and deleting elements are slow There are many functions in ArrayList. Next, we will ana ...

Posted by Kaylub on Tue, 21 Sep 2021 02:24:56 +0200

08 08Struts 2.x file upload

Article catalog 1 Basic upload 2 further operation of upload 3 upload restrictions If your code is developed with standard MVC, it is highly recommended to use SmartUpload. However, if your project code is developed with framework, such as Struts 1.x, Struts 2.x, and Spring MVC, you can only use F ...

Posted by nonexistence on Sun, 28 Jun 2020 06:52:44 +0200

Struts 2 landing interceptor

1. Configure the timeout time of session in web.xml <! -- configure session timeout in minutes -- > <session-config> <session-timeout>180</session-timeout> </session-config> 2. I also post a session tool class here to facilitate obtaining the user information in the session after the successful login. ...

Posted by wafflestomper on Fri, 20 Mar 2020 21:04:38 +0100

SSH integration: Spring 5.2.2 + struts 2.5.22 + Hibernate 5.8

SSH integration: Spring 5.2.2 + struts 2.5.22 + Hibernate 5.8 1, Environment construction Database: MySQL 8JDK: 13 jar package Spring Struts Hibernate Spring integrates Hibernate Struts integrates Spring -C3p0 Connect to database Using Hibernate above JDK8 requires importing 2, ...

Posted by landonmkelsey on Sun, 12 Jan 2020 15:46:14 +0100

Java web learning summary -- file upload and download

Catalog 1. Establishment of file upload environment 2. File upload code implementation 3. About downloading @ Hey, Xiong dei, you have to know that in Web development, file upload and download are very common functions. As for file upload, browser upload [file transfer in the form of stream] - serve ...

Posted by bskauge on Mon, 09 Dec 2019 14:02:57 +0100