". Specified information can also be output anywhere on the page.">
JSP expression is used to output information to the page. Its syntax format is as follows:
##<%= Expression%>,
Starts with "<%=" and ends with "%>"
Here are some simple examples:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>测试JSP表达式的使用 <% String manager = "小李"; %> 管理员:<%=manager%> <%="管理员:" + manager%> <%=1 + 2%> <% int x = 10; out.println(x); %> <% String url = "test.png"; %>
<%=new Date()%> <% for (int i = 0; i < 5; i++) { %>http://blog.csdn.net/u010142437
<% } %>
Related learning recommendations:
The above is the detailed content of What does the syntax of expressions in jsp begin with?. For more information, please follow other related articles on the PHP Chinese website!