2023.10.25 What is EL expression? EL expression, Expression Language, can replace the java code in JSP, making the program in the JSP file look cleaner and more beautiful. Since JSP is mixed with various java codes, such as , , etc., the JSP file is very confusing and difficult to maintain, so EL expressions are […]
Tag: jstl
JSP Standard Tag Library (JSTL) Personal User Guide
As a reminder, this article only covers the configuration of JSTL and briefly introduces several commonly used tags in JSTL’s Core and Functions tag libraries. For more detailed content, the blogger will post corresponding hyperlinks. Note: This tutorial uses JSTL 1.2. If you are using JSTL 1.1 or a previous version, you need to import […]
The use of javaee springMVC Map ModelMap ModelAndView el and jstl
pom dependencies <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>TestSpringMVC3</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>TestSpringMVC3 Maven Webapp</name> <!– FIXME change it to the project’s website –> <url>http://www.example.com</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <!– Spring –> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.3.18.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.3.18.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> […]
CGLIB proxy, jsp, EL expression, JSTL standard tag library
1. CGLIB agent There is a class that does not implement the interface. If you want to enhance this class, you need to use the CGLIB proxy Import CGLIB package <dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>3.3.0</version> </dependency> Write the proxied class package com.wz.practice.proxy.cglib; public class UserService { public void add(){ System.out.println(“——–add execution——–“); } public void update(){ System.out.println(“——–update […]
JavaWeb Speedthrough EL and JSTL
Directory 1. EL expression 1. Quick Start : 1.1 Basic introduction 1.2 Getting Started Case 2. Commonly used output formats: 2.1 Create JavaBean class 2.2 Create JSP file 3.empty operator: 3.1 Introduction 3.2 Examples 4. EL object: 4.1 EL11 built-in objects 4.2 Domain Object Demonstration 4.3 Get HTTP information Two, JSTL tag library 1. Basic […]
el expression and jstl tag library
el expressions are only used in jsp pages. The role of the el expression when it was first proposed: 1. Data can be obtained from domain objects. easier. ${expression to get domain object content} pageContext request session application 2. The second usage is to write various operations in el expressions. Arithmetic comparison operation logic operation […]
EL expression & JSTL tag library
1. What is EL expression and what does EL expression do? The full name of EL expression is: Expression Language. is an expression language. What is the function of EL expression: EL expression mainly replaces the expression script in the jsp page to output data in the jsp page. Because EL expressions are much more […]
JSP+JSTL+EL expression, realize the page jump function of web pages (previous page, next page, first page, last page page jump)
1. Paging display is everywhere significance: In practice, all data will not be displayed together, so the paging display of data needs to be considered 2. Preliminary preparation (1) jar package (2) Import the c tag library <%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %> 3. Concrete Realization Analysis Realization: first page previous page Through hyperlinks, jump to […]
[JSP] Use JSTL to enhance JSP functions
This article is for learning reference only! JSTL stands for JavaServer Pages Standard Tag Library; it provides a core set of web page functionality that can perform many basic tasks such as conditional and iteration of structural elements, manipulation of XML documents, and support for internationalization tags to more complex SQL element processing. JSP is […]
BCSP-Xuanzi Java Development Java Web Programming CH08_Using EL and JSTL to Simplify JSP Pages
BCSP-Xuanzi Java Development Java Web Programming CH08_Using EL and JSTL to Simplify JSP Pages EL expressions Disadvantages of Writing Java Script in JSP Program structure is complex poor readability difficult to maintain <td width=”380″>@<%= blog.getOrigin().getUser().getNickname() + “:” + blog.getOrigin().getContent() %></td> Using EL expressions can greatly simplify JSP code <td width=”380″>@${blog.origin.user.nickname} : ${blog.origin.content}</td> Get to know […]