jsp built in object login cookie + session
Summary
Two pages in totalWhen accessing the product list directly, it will judge whether the user is logged in. If the user is not logged in, it will jump for 3 secondsIf the user logs in, there is no jumpLogin page: for login page, enter user name and password directly. Compare with database to loginAnd save the password locally
ps usually ne ...
Posted by daynah on Tue, 03 Dec 2019 18:49:28 +0100
08 "enable user mailbox activation
Mailbox activation implementation
process analysis
code implementation
1) process analysis
① click the link to activate the email: http://localhost:8080/store/user/active?code=xxx
② it is necessary to write a process for / active path in UserServlet
Get activation code
Call service layer to complete activation
Page Jump, ...
Posted by sarika on Mon, 02 Dec 2019 15:00:51 +0100
Spring MVC [data write back and exception handling]
Article directory
Data back writing
Default mode
Through Model mode
Book.java
HelloController.java
book.jsp
springmvc.xml
web.xml
@ModelAttribute annotation implementation
Modify parameter echo variable name
Configure global variable names
exception handling
Exception handler
errors.jsp
Data back writing
Data up ...
Posted by AZDoc on Sun, 24 Nov 2019 21:44:33 +0100
RocketMQ -- environment configuration
Let's first go to / etc/hosts to add information
vim /etc/hosts
Add the following information:
Pass apache-rocketmq.tar.gz to / usr/local/software through XFTP tool
Then add / usr / local / Apache rocketmq directory, and extract Apache rocketmq.tar.gz to this directory
[root@bogon apache-rocketmq]# mkdir /usr/local ...
Posted by maniac1aw on Sat, 23 Nov 2019 22:08:11 +0100
Ueditor uploads pictures to qiniu cloud storage
It's really hard to work on this editor in the last day or two. Fortunately, it's finally finished.
Scenario reproduction:
Implementation steps:
[1] import corresponding dependency and static files
The dependency is the core dependency. If you think about io and fileupload, you must also need it. Once again ...
Posted by webwalker00 on Sat, 23 Nov 2019 18:10:48 +0100
JavaBean learning summary
JavaBean is a special class.
• design rules for JavaBean s
(1) JavaBean is a public class
• (2) the JavaBean class has a common parameterless constructor.
(3) all properties of JavaBean s are defined as private.
• (4) in JavaBean s, you need to provide two public methods for each attribute. Suppose th ...
Posted by cnperry on Fri, 15 Nov 2019 17:55:58 +0100
Introduction and Introduction to [Struts2]
1. Overview
2. Struts2 Quick Start Program
2.1 Development Process Comparison
2.2 Introducing dependencies
2.2 Create a jsp page
2.3 Configuring a front-end controller in web.xml
2.4 Create struts.xml configuration file
2.4 Create a HelloAction class
2.5 Configuring HelloAction in the struts.xml file
2.6 Add connections in i ...
Posted by t.bo on Sat, 09 Nov 2019 21:49:32 +0100
Spring MVC? File upload-day02
Spring MVC file upload)
SpringMVC-day02
Spring MVC file upload
1. Use maven to introduce two more jars' commons-io-2.6. Jar commons-fileupload-1.3.3. Jar based on the Spring jar package and spring MVC jar package.`
2. Spring MVC needs to configure processor mapper, processor adapter, view parser a ...
Posted by rulkster2 on Sun, 03 Nov 2019 02:36:57 +0100
Struts2 -- add, delete, modify and query
Using struts to complete adding, deleting, modifying and checkingIdeas: 1. Import related pom dependencies (struts, custom tag library dependency) 2. Import the paginated tag class, z.tld, and complete the configuration of web.xml 3. dao layer to access data 4. The web layer calls the dao layer to return data to the foreground. 5. Configur ...
Posted by GateGuardian on Sat, 02 Nov 2019 08:29:39 +0100
Web tutorial email sending and verification code
Article directory
I. use QQ email to send mail
1. Get the authorization code of QQ email
2. Import jar package mail.jar
3. Test code
Verification code implementation
1. Principle of picture verification code
2. Verification code tool class
3.VerifyCodeServlet
4.UserServlet.java
5.login.jsp ...
Posted by VTS on Sat, 02 Nov 2019 04:37:19 +0100