JSP Standard Tag Library: JSTL

JSTL (JSP Standard Tag Library), JSP standard tag library, can be embedded in JSP pages to complete business logic and other functions in the form of tags. The purpose of jstl is to replace script code in jsp page as well as el. JSTL standard tag library has five sub libraries, but with the development, its core library is often used at present ...

Posted by feyd on Thu, 09 Apr 2020 10:51:00 -0700

MQTT protocol for message sending and receiving in Android

MQTT protocol for message sending and receiving in Android PrefaceMQTT (Message Queuing Telemetry Transport), a message protocol based on the publish/subscribe paradigm, is an extremely simple and lightweight message protocol designed for limited devices and networks with low bandwidth, high latency or unreliability.Today we will focus on the u ...

Posted by rivasivan on Wed, 08 Apr 2020 21:36:54 -0700

Introduction to the varnish foundation of WEB caching system

Previously, we talked about the cache control mechanism in http protocol and the introduction of varnish architecture components. Please refer to https://www.cnblogs.com/qiuhom-1874/p/12620538.html Today, let's talk about how to configure and use varnish; We mentioned earlier that there are two configuration files in varnish, one is / etc/varni ...

Posted by zarathu on Sat, 04 Apr 2020 17:38:21 -0700

java Web session Technology (cookie)

java Web(cookie) session Technology Set xml configuration information <!-- ************************** --> Create a select -- > < servlet name > demo05 < / servlet name > <! -- 2. Name select -- > < servlet class > come. Lanou3g. Demo05 < / servlet class > &l ...

Posted by seodevhead on Sat, 04 Apr 2020 11:11:53 -0700

session expired, intercept ajax request and jump to login page

1. Method 1: 1.1 use filter and ajax setup to intercept ajax and jump to the login page 1 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) 2 throws IOException, ServletException { 3 4 HttpServletResponse hresponse = (HttpServletResponse)response; 5 HttpServletRequest hr ...

Posted by steelaz on Fri, 03 Apr 2020 21:40:17 -0700

Installation and use of ActiveMQ

ActiveMQ installation Go to http://activemq.apache.org/ official website to download ActiveMQ Installation environment: 1. jdk required 2. Install the Linux system. The production environment is all Linux systems. Installation steps: Step 1: upload the ActiveMQ compressed package to the Linux system. Step 2: decompress. Step 3: start. Use the ...

Posted by TechXpert on Fri, 03 Apr 2020 11:28:46 -0700

(transfer) the server opens a new Multithread to use HibernateSession to prevent No session

Original link of blogger: https://blog.csdn.net/zhengwei223/article/details/30506455 The new thread needs to bind the Hibernate session to use the functions of transaction and delay loading in the new thread, otherwise no session exception will be exposed; terms of settlement: //Business method new Runnable() { @Over ...

Posted by mourisj on Fri, 03 Apr 2020 10:28:25 -0700

Hibernate association mapping

1.1 many to many relationship 1.1.1 use annotations to complete many to many configuration. To configure many to many, you only need to configure the intermediate table on one side and use mappedby on the other side to represent foreign key maintenance. A. Create PO class In the Teacher class: @Entity @Table( ...

Posted by dirtyfrenchman on Thu, 02 Apr 2020 22:47:40 -0700

Introduction to Hibernate II (add, delete, modify and check)

Hibernate's addition, deletion, modification and query increase There are many ways to add, such as save, persist, savaoroupdate and merge. The use method is as follows. The code here follows the previous section package test; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory ...

Posted by L0j1k on Thu, 02 Apr 2020 15:28:25 -0700

Using graphic verification code Kaptcha in Java Web project

1, Verification code introduction The main way of generation: 1. Use Java Native mode, including the use of Servlet, AWT and ImageIO; 2. Use open source libraries, such as Jcaptcha, Kaptcha; (open source library of each graphic verification code: http://www.oschina.net/project/tag/248/captcha?lang=19) In addition, the generated code can be ...

Posted by gin on Thu, 02 Apr 2020 10:26:13 -0700