According to TLD or attribute directive in tag file, attribute value does not accept any expressions

来源:互联网 发布:数据的统计分析 编辑:程序博客网 时间:2024/06/10 18:47

遇到了这个问题,就是要把两个工程合在一起,真的是各种问题啊。

当时是在使用c:out 的标签出的问题。

网上的解决方法马上出来:

对于:  <c:out value="${userInfo}" default="没有结果"/>这个地方,

异常的原因是不能识别“${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 prefix="c" uri=http://java.sun.com/jstl/core_rt  %>
经过改动之后,jsp页面能正常执行了。

原创粉丝点击