An article on understanding struts 2 + hibernate + spring and ssh integration framework

This article will explain based on Maven project. If you don't understand maven, you can refer to the previous article published   Rely on the downloaded Maven website: https://mvnrepository.com/   Struts2   What is struts? A web application framework designed based on mvc pattern is an upgraded version of struts 1, which ...

Posted by Akenatehm on Sun, 31 Oct 2021 02:41:41 -0700

hibernate Association

1, One to many association configuration Database: master table, slave table, associated by foreign key Class: class A{ B b; } class B{ } Example: order and orderItem order entity class package com.sjy.entity; import java.util.HashSet; import java.util.Set; public class Order { // create table t_hibernate_order // ( // order_id i ...

Posted by dale282 on Mon, 18 Oct 2021 10:38:11 -0700

Simple principles and differences of Java interceptors, filters, and listeners

1. Interceptor concepts Interceptors in java are objects that dynamically intercept action calls, providing a mechanism for developers to execute a piece of code before and after an action is executed, or within an Action Blocking execution before execution also provides a way to extract reusable parts of code in an Action. In AOP, intercepto ...

Posted by gabrielserban on Thu, 07 Oct 2021 17:49:30 -0700

Hotel Management System - Java Implementation (Small Project)

Preface Program for hotels: hotel management system, simulation of booking, check out, printing all room status and other functions. 1. System User: Hotel Front Desk 2. The hotel uses a two-dimensional array to simulate. 3. Every room in the hotel is a Java object: Room 4. Each room has: number, type, room status 5. Functions that the system s ...

Posted by Holoverse on Wed, 06 Oct 2021 14:21:30 -0700

Description of OGNL expression of struts 2

1 OGNL overview OGNL is the abbreviation of object graph navigation language. It is a powerful Expression Language (EL). Through its simple and consistent expression syntax, it can access object properties, call object methods, go through the structure diagram of the whole object, and realize field type conversion. It uses the same express ...

Posted by alin19 on Tue, 21 Sep 2021 12:46:34 -0700

A preliminary solution to the working principle of spring framework

1: Basic concepts of spring 1) Struts 2 is web framework, hibernate is orm framework 2) spring is a container framework, which creates beans and maintains the relationship between beans 3) Spring can manage the web layer, persistence layer, business layer, dao layer, spring can configure the components of each layer, and maintain the relati ...

Posted by werty37 on Tue, 09 Jun 2020 23:13:17 -0700

Details of Struts2 configuration

1. Execution process chart of struts 2 The whole implementation process is divided into two parts: 1. Server start - > initialization filter - > Load struts.xml 2. Browser send request - > filter - > struts.xml Find action class name in - > instantiate action class The action class w ...

Posted by Ju-Pao on Fri, 05 Jun 2020 02:32:41 -0700

Simple construction of struts 2 Framework (Introduction)

Simple construction of Struts (Introduction) Process summary: (struts 2 download: https://struts.apache.org/) (software requirements: install eclipse/myeclipse and tomcat) Guide Package: (in apps, blank case is the simplest package needed) Action class: (path: SRC > CN. Itcast. Hello (the package of the class) > class name) struts.xml: ...

Posted by petroz on Sun, 03 May 2020 05:07:15 -0700

Struts 2 notes -- File Download

Struts 2 provides the stream result type, which is specifically used to support the file download function. The following four properties are required to configure the result of stream type. contentType: Specifies the file type of the downloaded file inputName: Specifies the entry input stream of the downloaded file contentDispositio ...

Posted by greeneel on Fri, 01 May 2020 21:03:00 -0700

[java framework] Struts2 -- result view and parameter receiving of struts2

1. Results view of struts 2 Each atcion of Struts2 can have different result return methods. There are 11 ways to return the result type attribute in result. The main and most commonly used jump modes are redirect, redirectAction and pather. The type of the specific jump method can be found in struts-default.xml, as follows: <package name=" ...

Posted by budz on Sat, 18 Apr 2020 02:10:09 -0700