博主使用的是IDEA
在jsp文件中添加
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
- isELIgnored的默认值为true, 表示忽略EL表达式,jsp中所有的EL效果和正常文本一样
- isELIgnored=false,表示不忽略EL表达式,这时${xxx}就会获取相应的属性值。
博主使用的是IDEA
在jsp文件中添加
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>