How to Develop Custom Labels
1. Introduction
Principle: User-defined jsp tags.When a jsp page with a custom tag is compiled into a servlet by the jsp engine, the tag tag is converted into an operation on an object of a tag processor class.
Tag Library API: Defined in javax.servlet.jsp.tagext
2. Lifecycle of label processor class implementing SimpleTag interface
1) setJs ...
Posted by Ludichrist on Wed, 12 Jun 2019 19:26:19 +0200
Introduction to Java from Introduction to Abandon: Basic Access to Struts 2 (2)
I've learned the basic usage of struts 2 before, and then I'll talk about the three access methods of struts 2.The first way: specify the method attributeThe second way: dynamic method invocation (exclamation mark mode, need to turn on the corresponding switch), the official network is not recommended to use.The third way: wildcard mode, recomm ...
Posted by ligraci on Sun, 09 Jun 2019 22:13:44 +0200
Introduction to Java from Introduction to Abandon: Basic Interceptor Grammar for Struts 2
Interceptor, as its name implies, is interception, not robbery!!! (Pictures are from the Internet. If you have copyright or moral problems, please notify the blogger to delete them. Thank you.)It's like a thief.Not This drop.Going back to the point, what exactly is the interceptor in struts 2? Let's Baidu··· Er, wrong, let ...
Posted by CaseyC1 on Sat, 08 Jun 2019 23:05:15 +0200
iOS Development Buy-in Process
I. Submit information to appStore
First step
The second step
The third step
Finish Step 3 and remember to save
The fourth step
The fifth step
First click SetUp of Contact Info
The sixth step
The seventh step
Fill it out, save it, and go back to the previous page.
The eighth step
The ninth step
The te ...
Posted by unbreakable9 on Tue, 04 Jun 2019 21:59:28 +0200
Spring MVC demo small example to achieve simple login and registration
1. Create a dynamic web project
2. Importing the jar packages needed by Spring Mvc (you can find them online, there are many resources)
The first two parts are not described in detail, but the second part is the formal code.~
First of all, there is a web.xml file, which belongs to the large configuration file. As long as you write login, you ca ...
Posted by LuiePL on Tue, 04 Jun 2019 03:27:14 +0200
java and memo
Insecure "Check before Execution", code form as follows:
if(Conditional satisfaction){ //Thread security issues are prone to occur here
//doSomething
}else{
//doOther
}
Read-modify-write
Atomic operation: Using CAS technology, first read the value A from V and calculate the new value B according to A, then change the value o ...
Posted by phat_hip_prog on Sun, 19 May 2019 12:40:08 +0200
Some Applications of layer Bomb in Practical Projects
Official introduction: Layer is still the representative work of Layui. It is not accidental that its audience is widespread. It is the persistence of more than five years, continuous improvement and maintenance, continuous construction and improvement of community services, which makes apes spread spontaneously and even become the most powerfu ...
Posted by interpim on Sun, 19 May 2019 00:47:53 +0200
Struts 2 does not jump after submitting from form to execute action (ajax)
Write an item today about a merchandise added to the shopping cart function, originally designed to store data after clicking a button, and pop up a div to inform the user that the addition was successful, the page does not jump, seemingly simple function, but stuck at the point of "no jump". I don't want t ...
Posted by esport on Sat, 18 May 2019 06:18:51 +0200
JSP for Java Web: Custom Tags
https://www.cnblogs.com/vmax-tam/p/4145334.html
Development steps of custom tags
Step one
Write a common java class that inherits the TagSupport class~
package com.vmaxtam.dotest;
import javax.servlet.jsp.tagext.TagSupport;
public class MyTagTest extends TagSupport {
}
Step two
Rewrite the setPageContext method of the parent class to ...
Posted by shalinik on Fri, 17 May 2019 00:33:21 +0200
Simple example of UEditor for picture upload
1. First you can go to Ueditor on the official website to see detailed documentation, including how to install to Eclipse, related jar packages, and how to use Ueditor. This article mainly describes how to upload single pictures and use your own interface:
Run tomcat, run in google browser (Test is my project name):
http://lo ...
Posted by m00gzilla on Sun, 05 May 2019 19:24:04 +0200