The timer of jQuery does not refresh, and there is no error message; adding debugging message shows that timer only executes once;
Performance: timer does not refresh, no error information is reported; add debugging information to show timer only executes once;
reason:
var timer = $.timer (1000, MAIN.show_time,false);
//var timer = $.timer (1000, MAIN.show_time(),false);
//The above comment is wrong, because when calling the callbac ...
Added by Sangre on Mon, 04 May 2020 07:44:02 +0300
[spring Internationalization] Detailed internationalization of springMVC, springboot
In web development, we often encounter problems with international language processing, so how can we internationalize?
What can you get?
Use springgmvc and thymeleaf for internationalization.
Use springgmvc and jsp for internationalization.
Use springboot and thymeleaf for internationalization.
Catalog
What can ...
Added by PhaZZed on Mon, 20 Apr 2020 05:57:12 +0300
REST style request mode
REST: representative state transfer. (resources) state transformation of presentation layer. It is the most popular Internet software architecture. It has a clear structure, conforms to the standard, is easy to understand, and is easy to expand, so it is being adopted by more and more websites. Using the REST style of request mode can simplify ...
Added by davidx714 on Sat, 18 Apr 2020 17:09:10 +0300
Getting started with FreeMarker
1.1. What is freemarker
FreeMarker is a template engine written in Java language, which generates text output based on templates. FreeMarker has nothing to do with the Web container, that is, it doesn't know about servlets or HTTP when the Web is running. It can not only be used as the implementation technology of presentation layer, but also b ...
Added by ryanyoungsma on Sun, 05 Apr 2020 17:23:09 +0300
JSTL tag loop traversal
I have a collection of back-end servlet s, which is not a specific object, but also a double loop.
<% List list = (List) request.getParameter("list");
So we can't do this again in JSP pages
for(int i=0;i<list.size();i++)
Because. size() is not available.
Tag with JSTL
c: The items property of the fo ...
Added by wannalearnit on Sun, 05 Apr 2020 11:21:47 +0300
java interceptor + cookie+session to realize N-day login free
The basic idea is:
1. When logging in, set session and cookie and a static variable to store the generated sessionId value;
2. Because the session life cycle is over when the browser is closed, we need to use cookie s to access the value of sessionId, and then set the value in the static variable map for later query
3. In the filter, you nee ...
Added by hmvartak on Thu, 02 Apr 2020 21:30:25 +0300
Automatic login function implementation
automatic logon
After the user logs in, he / she will enter the home page. After the browser is closed, the next time he / she opens the browser to enter the home page, he / she often needs to log in again. The automatic login function: when he / she opens the browser again, he / she can enter the home page without lo ...
Added by gsaldutti on Thu, 02 Apr 2020 13:34:39 +0300
Create react app and complete HelloWorld of TodoList
React is the front-end framework of FaceBook, which is characterized by componentization, high encapsulation and component reuse. The disadvantage is that both view and data are included in the render function, which does not achieve the separation of data and view
The JSP syntax initiated by React has become an independent standa ...
Added by SieRobin on Thu, 02 Apr 2020 04:14:24 +0300
Set global reference file in jsp page
head.jsp file
The plug-ins, libraries, etc. that need to be used more often in the project are agreed to be put in a JSP file named head.jsp file, which is equivalent to a global
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!-- Import label Library -->
<%@ taglib prefix=" ...
Added by wizhippo on Tue, 31 Mar 2020 19:39:44 +0300
Qile background management system -- order management module
hello!!! I introduced it to you the other day----- Store management module Today's order module and management module are almost the same, and the implementation method can be almost the same!! But I still need to explain the order module to you, because the front-end part of the order module will give you two special tags, and let you have a d ...
Added by illzz on Thu, 26 Mar 2020 11:57:57 +0200