今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
来源:互联网 发布:python 冒号的作用 编辑:程序博客网 时间:2024/06/05 07:57
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/page/employee.jsp(24,3) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
org.apache.jasper.JasperException: /WEB-INF/page/employee.jsp(24,3) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
页面上的源码如下:
1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 <%@ taglib uri="/struts-tags" prefix="s" %>
3 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <html>
6 <head>
7
8 <title>employee</title>
9
10 <meta http-equiv="pragma" content="no-cache">
11 <meta http-equiv="cache-control" content="no-cache">
12 <meta http-equiv="expires" content="0">
13
14 </head>
15
16 <body>
17 ONGL:
18 <s:iterator value="#request.employees">
19 <s:property value="username"/>,<s:property value="password"/>,<s:property value="gender"/>
20 </s:iterator>
21 <br/>
22
23 JSTL/EL:
24 <c:forEach items="${employees}" var="employee">
25 ${employee.username}, ${employee.password}, ${employee.gender}<br/>
26 </c:forEach>
27 </body>
28 </html>
异常提示,在第24行的时候发生错误,说不接受任何表达式,后来在网上找到一个解决方案,说是版本不支持EL,所以把
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
改为:
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
一定要记得加引号!
就输出正常了。
0 0
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 今天在做一个测验时发现了一个异常(According to TLD or attribute directive in tag file)
- According to TLD or attribute directive in tag file异常
- 异常According to TLD or attribute directive in tag file)的处理
- 在使用JSTL时出现According to TLD or attribute directive in tag file
- jstl According to TLD or attribute directive in tag file
- According to TLD or attribute directive in tag file,
- According to TLD or attribute directive in tag file
- Struts2异常----- According to TLD or attribute directive in tag file, attribute test
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions异常原因及解决方法
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- JSTL Exception: According to TLD or attribute directive in tag file, attribute items does not accept
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- according to tld or attribute directive in tag file attribute items does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- 简单的分页js代码
- window.location.href不起作用的原因分析
- hihocoder 1122 : 二分图二•二分图最大匹配之匈牙利算法
- VMware扩展磁盘大小
- 关于支付宝分享集成
- 今天在做一个SSH整合测验时发现了一个异常(According to TLD or attribute directive in tag file)
- 在Unity世界里遇到的第一个错误!
- Mysql没有初始密码(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- spark安装、源码编译
- 点滴记录ExtJS练习——ComboBox的四种扩展
- 可视化学习之百度echarts工具(2)
- Hibernate无法创建表的原因分析
- NYOJ 325 zb的生日 && NYOJ 456 邮票分你一半
- 改写的两个mysql存储过程,用于判断主键外键