According to TLD or attribute directive in tag file, attribute value does not ac

异常的原因是不能识别“
${userInfo}
”,解决办法有两种:
一、在page指令里,加入isELIgnored="true"属性,即
<%@ page language="java" contentType="text/html;charset=gbk"  isELIgnored="true" %>

二、把
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

变为:
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

经过改动之后,jsp页面能正常执行了。

猜你喜欢

转载自lzj0470.iteye.com/blog/1942496