JSP gets data. JSP gets back-end data directly. Gets the selected value of input. Radio. No checked attribute.

let str0=’${showList}’; let str1=${showList}; Then you can convert it through JSON.parse() Get the value selected by input //goodsType by category goods by item var oneType= $(“input[ name=’criteria1′ ] “).val(); //count by quantity totalprice by cost var twoType = $(“input[ name=’criteria2′ ] “).val(); What is obtained is the value in the red box below <script language=”javascript”> […]

Regarding the problem of java.io.UncheckedIOException: Cannot delete C:\Users\guo\AppData\Local\Temp\tomcat.8081

First of all, its error report is like this. As long as you encounter this error, it means that the InputStream stream has not been closed after use. Just inputStream.close() and it will be done java.io.UncheckedIOException: Cannot delete C:\Users\guo\AppData\Local\Temp\tomcat.8081.8076585834079724671\work\Tomcat\localhost\ROOT\upload_00daa733_afe5_4d51_a016_0ed308a7e006_00000000.t mp at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431) ~[tomcat-embed-core-9.0.79.jar:9.0.79] at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:53) ~[tomcat-embed-core-9.0.79.jar:9.0.79] at org.springframework.web.multipart.support.StandardServletMultipartResolver.cleanupMultipart(StandardServletMultipartResolver.java:134) ~[spring-web-5.3.29.jar:5.3.29] at org.springframework.web.servlet.DispatcherServlet.cleanupMultipart(DispatcherServlet.java:1251) [spring-webmvc-5.3.29.jar:5.3.29] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1108) [spring-webmvc-5.3.29.jar:5.3.29] […]

[Miscellaneous talk] Unchecked cast: java.lang.Object to T and unit testing

Article directory 1. Unchecked cast: ‘java.lang.Object’ to ‘T’ 2. Unit testing Some messy minor problem records 1. Unchecked cast: java.lang.Object’ to T’ Problem description Sometimes, we need to customize some tool classes, tool methods or data structures, in which case we need to use generics. We instruct generics to either specify types or be used […]

Use el-form and el-table nesting in element-ui to edit table content and submit table form data verification (you can check the checked table content with required verification + check box)

Business scenario: There is a page that needs to use the style effect of the form to collect user input content for form submission, and when submitting, the form items in the form need to be verified => Note that there is a key point here (verification When it is necessary to verify only based […]

Solve the “Unchecked cast: java.lang.Object to java.util.List” problem in Java

Solve the “Unchecked cast: java.lang.Object to java.util.List” problem in Java Summary introduction Problem background possible reason possible reason Solution 1. Confirm the actual type of the object 2. Use generic collections 3. Avoid using primitive types Solution 1. Confirm the actual type of the object 2. Use generic collections 3. Avoid using primitive types configuration […]

element Tree Tree control The parent node is checked by default, and the data of the child nodes are all selected

Requirements, background permission control, the front end passes the checked node id to the back end, and the back end returns tree structure data. There is a field in each object to identify whether it is checked, because the parent node’s id also needs to be passed to the back end The id is passed. […]

Double Checked Locking and Lazy Initialization

The origin of double check locking In a Java program, sometimes it may be necessary to delay some expensive object initialization operations, and only in Initialization is done when using these objects. At this point, the programmer may use delayed initialization. But it takes some skills to implement thread-safe lazy initialization correctly, otherwise it is […]

Ding~, you have several React hooks for system-level interaction to be checked

Recently, Moyu time manually implemented several system-level interactive hooks, from simple to complex, and shared them with you in turn! 1. Monitor network status Define This hook mainly uses navigator global attributes and offline/online event monitoring import {<!– –> useEffect, useState } from “react” export const useNetwork = () => {<!– –> const [state, setState] […]

Netbeans implements an interface that includes input lines such as name, password, and password confirmation, and personal hobbies that can be checked, such as reading, fitness, swimming, and food. It is required to realize the function of verifying whether the password is consistent

code: /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package registration form; import javafx.application.Application; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import […]