Struts 2 wildcard details
For example, there are multiple requests in index.jsp
<a href="<%=path %>/usersAction!add.action">add</a><br>
<a href="<%=path %>/usersAction!show.action">show</a><br>
<a href="<%=path %>/usersAction!update.action">update</a><br>
<a href="<%=path %> ...
Posted by HairBomb on Fri, 29 Mar 2019 17:54:29 -0700
spring and UEditor Combination
Preface
The Spring Festival is boring, go to get rich text editor, then Baidu, many say Baidu's UEditor is good, and then go to the official website to take a look at the document, it is very simple and easy to use. Then I want to combine this with my own spring project. It's still GG when uploading pictures. Baidu Google once uploaded picture ...
Posted by didgydont on Thu, 28 Mar 2019 16:24:28 -0700
java original code completes pdf Online preview and pdf printing and downloading
This is the result I summarized when I met such needs in my work. When I finished the needs, I took it as a work note to avoid forgetting in the future. Of course, it is the best way to help others.
Prerequisite preparation:
1. At least the jar packages that need to be introduced in the project, pay attention to the version:
a) core- ...
Posted by mountaindave on Fri, 22 Mar 2019 20:36:55 -0700
Spring mvc Interceptor Solves Session Timeout Configuration Process
Recently, the function of Session timeout has not been implemented in the company's internal framework. Because of the iframe structure, when the Session timeout is clicked on the left system menu, the login box pops up again on the right side of iframe.
The problem is due to the absence of interceptors.
The idea of adding interceptor: ...
Posted by Tyen on Fri, 22 Mar 2019 15:39:52 -0700
Commonly used JS picture scroll (seamless, smooth, scroll up and down left and right) code
Commonly used JS image scrolling (seamless, smooth, up and down left and right scroll)
Code complete innerHTML: Set or retrieve HTML within the object start and end tags
Parameters:
Commonly used JS image scroll (seamless, smooth, up and down scroll left and right) code innerHTML: Set or get HTML in object start and end tags
scrollHeight ...
Posted by snoopgreen on Fri, 22 Mar 2019 14:03:52 -0700
Java chooses the corresponding method in servlet through reflection mechanism
This method is used to select the corresponding method in the servlet by the corresponding name in Javaee development.
Note: The main code is as follows
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
/**
* This is the problem of setting up browser encoding
...
Posted by benracer on Wed, 20 Mar 2019 09:27:28 -0700
jsp handles the splicing of form parameters by taking every piece of information in c for loop + get mode
The results are as follows:
Click Send to get userID and input box content.
Actions are not allowed to be spliced in the form get submission way. When a get request is made, the contents of the input box are automatically spliced into the address bar, ignoring your action splicing.
So the form get submission can only pass one parameter, if ...
Posted by brentech on Fri, 15 Feb 2019 00:51:17 -0800
org.apache.commons.io - FileUtils Learning Notes
Application of FileUtils Class
1. Write a file;
2. Read from the file;
3. Create a folder, including folders;
4. Copy files and folders;
5. Delete files and folders;
6. Get the file from the URL address.
7. List files and folders through file filters and extensions.
8. Compare the contents of documents;
9. The last modification time of the docu ...
Posted by erisande on Mon, 11 Feb 2019 18:33:18 -0800
No matching records found when bootstrap-table displays data
Today, to implement the query function, we need to update the list display. When using bootstrap-table, the background controller sends back the json string of the query result by using @responsebody. The postman debugging result shows no problem, as shown in the figure:
However, the bootstrap-table on the jsp page has been displaying No m ...
Posted by vcv on Mon, 11 Feb 2019 02:57:17 -0800
Restful Api CRUD Standard Example (Swagger 2 + validator)
Why did you write this post?
To write a simple CRUD that conforms to Restful Api specification, a Controller, I want Baidu to search for a copy directly and simply modify the code in the method.
However, the search results left me speechless. None of them are in compliance with the Restful Api specification. The most speechless thing is you dir ...
Posted by php_guy on Sun, 10 Feb 2019 15:12:18 -0800