Three methods of introducing css files
Three methods of introducing css files
(1) In-line style:
Use style attribute to introduce css style and write it in the body tag. It is used more in testing.
<h1 style="color:red;">application of style attribute</h1>
<p style= "font-size: 14px; color: green;">Styles set directly in HT ...
Posted by HEAD on Thu, 11 Apr 2019 16:27:31 -0700
The third day of Struts 2 study - saving login information and data validation
In JSP, the scope of server-side data storage is usually request, session and application, and their corresponding Servlet API s are HttpServlet Rquerst, HttpSession and ServletContext, respectively. These scopes also need to be accessed in the controller of Struts2.
Struts2 provides an ActionContext class, which is called the Action Context or ...
Posted by ElizaLeahy on Tue, 09 Apr 2019 13:24:31 -0700
Springmvc exception handling
1 DescriptionIn the development of J2EE project, it is inevitable to encounter all kinds of predictable and unpredictable exceptions that need to be handled, whether it is the database operation process at the bottom, the business process or the control process. Exceptions are handled separately in each process. The code coupling of the system ...
Posted by Hellbringer2572 on Sun, 07 Apr 2019 10:30:31 -0700
Viewing spring mvc request processing process from Dispatcher Servlet
Dispatcher Servlet to see spring mvc request processing
Framework
Official Architecture MapYou can see the request processing process, and the Dispatcher Servlet plays the role of front controller.
life cycle
As you can see from the source code, Dispatcher Servlet inherits from Framework Servlet, Framework Servlet inherits HttpServlet Bean, and ...
Posted by rajbal on Sat, 06 Apr 2019 21:12:32 -0700
java Notes: Spring Security Applications
The first thing to mention in the Java project is the jar package, the jar download address of Spring Security: http://static.springsource.org/spring-security/site/downloads.html . However, the jar package in my project is rather old and extracted from previous projects. My engineering structure drawings are as follows:
First example:
The ...
Posted by oc1000 on Sat, 06 Apr 2019 16:21:31 -0700
Wechat Public Platform jsapi Development Tutorial (8) Display Hidden Top Right Menu
Source of articles http://www.vxzsk.com/119.html
Wechat official jsapi provides an interface operation interface to control the menu in the upper right corner of Wechat's web page. Let's look at the instructions of Wechat official documents on the interface operation interface.
Hide the top right menu interface
wx.hideOptionMenu();
Displ ...
Posted by dsaba on Wed, 03 Apr 2019 10:36:37 -0700
Java exception classification and unified processing
Study Java Students pay attention!!!
If you encounter any problems or want to acquire learning resources, you are welcome to join us. Java Learning Communication Group, Group Number: 434987175
Let's learn Java together!
I. Classification of anomalies
Java exceptions are classified as "checking&q ...
Posted by Agtronic on Mon, 01 Apr 2019 22:42:30 -0700
Varnish's elegant model and sacred model
Today I'm talking with my colleagues about tomcat hanging on the back end of the current network, which results in varnish thread stacking on the front end, and eventually leads to varnish hanging or busy front-end web processing. Since I have looked at varnish's documents in detail before, I remember that there was a God model or the Holy Gra ...
Posted by mentor on Mon, 01 Apr 2019 12:00:29 -0700
Day 28 (Employment Class) Customized mvc framework, Struts introduction and implementation process, environment construction
1.
Custom mvc framework
Write a mystruts framework
Mvc mode: Model Model View tries to Control the controller
Control, ControllerServlet acts as a controller!Getting request data encapsulation [BeanUtils can be optimized, (call method? ]Call Service to process business logic.Skip (Forwarding/Redirecting) [Skip Code Write Death]
Summary of ...
Posted by hyperyoga on Sun, 31 Mar 2019 05:15:29 -0700
Hand-in-hand to do a JSP introductory program (5): Get all the goods rendering home page
Get all merchandise rendering homepages
Classes for interacting with databases: BookDAO.java
_Here we need to interact with the database from the beginning! A DAO (Data Access Object) concept needs to be introduced here. DAO works in the persistence layer and is mainly responsible for writing/reading data from the underlying storage. For the ...
Posted by lansing on Fri, 29 Mar 2019 22:27:29 -0700