[JavaWeb] JSTL tag library
JSTL tag library
JSTL Standard Label Library;
JSTL is used to simplify JSP development and improve code readability and maintainability.
JSTL is defined by SUN(Oracle) and implemented by Apache Tomcat team.
Reference to JSTL Core Library
Core is the most important tag library of JSTL, which provides the basic functions of JSTL.
<%@ taglib ...
Posted by farel on Sat, 12 Oct 2019 12:10:36 -0700
Shiro Integrated SSM Based on URL Privilege Management
After learning shiro, we can say that we try to add Shiro to ssm and do a set of URL-based rights management.
Other preparatory work is not much to say, direct operation, see the effect and then understand.
Table structure
As follows, the database name can be changed by itself, but it should be consistent with the name of the database you cr ...
Posted by luiddog on Thu, 10 Oct 2019 05:32:51 -0700
Front and Back End Separation of Java Projects - Spring MVC Configuration of html View Parser
Links to the original text: https://blog.csdn.net/qq_38355456/article/details/73603602
Based on the separation of the front and rear parts of the project, it does not use the backend template engine, so what is the end of.jsp,.vm templat ...
Posted by fantic on Tue, 08 Oct 2019 23:54:27 -0700
Java Web (34): Customer Relationship Management System
Zero. Database tables and configuration files
0.1 Database t_customer table
CREATE TABLE `t_customer` (
`cid` char(32) NOT NULL,
`cname` varchar(40) NOT NULL,
`gender` varchar(6) NOT NULL,
`birthday` date DEFAULT NULL,
`cellphone` varchar(15) NOT NULL,
`email` varchar(40) DEFAULT NULL,
...
Posted by brauchi on Sun, 06 Oct 2019 10:27:05 -0700
Using fileupload Component to Implement File Upload for Java Web Learning Notes
file.jsp:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
< title > file upload </title >
</head>
<body>
<%--
To realize the file upload function in web development, we need to complete the following two st ...
Posted by micknc on Sat, 05 Oct 2019 11:36:15 -0700
Java: How SpringBook integrates with JSP
Catalog
1. Add JSP to IDE
Adding JSP to JAR
3. Adding JSP to WAR
Take Maven Project as an example to illustrate how to integrate JSP into SpringBook Project
1. Add JSP to IDE
Add the following directory for placing jsp files
src/main/webapp/WEB-INF/jsp
maven configures pom.xml:
<projec ...
Posted by SetToLoki on Sat, 05 Oct 2019 02:39:55 -0700
Handwritten SSM Add/Delete Change Framework Set
1. Create entity classes
lombok-1.18.4.jar: (guide, short for pepper) used to simplify the code with annotations instead of get set accessors, with and without parameters, toString method.
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
private int eid;
private String ename;
private ...
Posted by EdN on Thu, 03 Oct 2019 08:06:40 -0700
Spring MVC - File upload
Spring MVC - File upload
1. File upload
1.1 File upload must
The enctype value of the form form must be: multipart/form-data (default: application/x-www-form-urlencoded)
B. The method attribute must be post
c. Provide a file selection field.
1.2 principle analysis of file uploading
When the encty ...
Posted by BlooPanthr on Tue, 01 Oct 2019 16:45:00 -0700
Introduction to Spring MVC
Introduction to Spring MVC:
1. Create a maven project and import dependencies
2. Configure the core controller:
3. Create configuration files for spring MVC (as shown below):
4. Write controllers and use annotations to configure:
5. Test Spring MVC:
1. Create a maven project and import dependenc ...
Posted by DarkShadowWing on Tue, 01 Oct 2019 04:30:25 -0700
Flask Station Notes - Using jinjia Template
The jinjia syntax is similar to jsp in Java Web. It can interact directly with the background in html with specific grammar rules and implement some simple logical operations.
Background function
@blog.route("/blog")
def blog():
data = [...]
return render_templates("index.html", data=data)
...
Posted by cdhogan on Mon, 30 Sep 2019 11:20:17 -0700