Introduction and use of freemarker
Introduction and use of freemarker
1, What is freemarker
2, How to use Freemarker
3, The syntax of freemarker template
3.1 access key in map
3.2 accessing properties in pojo
3.3 fetching the data in the set
3.4 date type format
3.5 processing of null value
3.6 import other template Include labels
...
Posted by corsc on Mon, 16 Mar 2020 00:29:56 -0700
Servlet forward and include methods
Original link: http://www.yiidian.com/servlet/servlet-dispatcher.html
Request Forwarding and Inclusion Using Servlet
The RequestDispatcher interface provides the ability to forward requests to another resource, which may be Html, Servlet, or Jsp.The interface can also be used for content containing other resources.
Method of 1 RequestDispatcher ...
Posted by stevengunn on Sat, 14 Mar 2020 15:55:00 -0700
WEB--EL&JSTL (IDEA version)
JSP:
1. instruction
*Function: used to configure JSP pages and import resource files
* format:
<% @ instruction name property name 1 = property value 1 property name 2 = property value 2...% >
* classification:
1. page: configure the
*contentType: equivalent to response.setContentType() ...
Posted by shadow1200 on Fri, 13 Mar 2020 01:13:27 -0700
[JaveEE learning paste 1] Based on Mysql, Servlet and JSP, write student's homework management system (including login interface)
The full code has been uploaded to Github: https://github.com/Shadow1300/JavaEE
It will also be listed at the end of the article.
1, First of all, understand the operation requirements
We first need to analyze the requirements:1) Users: teachers and students2) Functions: add homework, add students, q ...
Posted by garethj on Thu, 12 Mar 2020 00:32:47 -0700
Request request summary
Request line:
Request Method, Request Address and Parameters
public class LineServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//1. How to get the request
String method = request.getMethod( ...
Posted by witham on Mon, 09 Mar 2020 20:05:58 -0700
springboot learning 2 -- integrating JSP
Learn spring cloud from station b, and now make a summary. This summary removes the small errors in the video, and reminds some mistakes
b station link: https://www.bilibili.com/video/av55993157
Material link:https://pan.baidu.com/s/1o0Aju3IydKA15Vo1pP4z5w
Extraction code: 21ru
Next link:
The following ...
Posted by Huntress on Thu, 05 Mar 2020 02:15:28 -0800
Spring MVC (an entry-level case to learn about spring MVC)
Article directory
1. What is spring MVC?
2. Create your first spring MVC project
2.1. Create a maven project first, and add the support of web Framework
2.2. Configure the server
2.3 code subject
2.3.1 import dependency and add resource filter
2.3.2. Configuration of web.xml
2.3.3. Configure the sp ...
Posted by imperialized on Wed, 04 Mar 2020 21:51:02 -0800
Dynamic filling data into HTML page through js
Under normal circumstances, it's more convenient to complete the function in JSP page. Compared with JSP page, it's more convenient to use, and there will be special circumstances. HTML page is needed to display the data, and the data needs to be acquired and displayed dynamically, so js method is us ...
Posted by nashyboy on Mon, 02 Mar 2020 21:48:54 -0800
Integrated use of Shiro permission management in SpringBoot
When integrating Shiro, we first need to determine our steps:
1. Add Shiro's dependency package to implement its own Realm class (by inheriting the AuthorizingRealm class);
2. Implement Shiro's configuration class
3. Implement the front-end login interface and Controller class
Step one:
Add d ...
Posted by vivianp79 on Mon, 02 Mar 2020 18:37:12 -0800
Struts2 framework -- internationalization of Struts2 and data verification of struts2
Article directory
1, Struts 2 internationalization
1. Overview of struts 2 internationalization
2. Internationalization of struts 2
2, Struts2 data verification framework
1. Steps of Struts2 data verification framework
2. Using validate method to verify data
3. Provide corresponding verification m ...
Posted by sorenchr on Sun, 01 Mar 2020 02:25:45 -0800