缺包

梅子 2010-10-12 01:48:10
引入:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

调用:c:if test="${fn:length(news.newstitle) > 30}">...</c:if>

报错:The class org.apache.taglibs.standard.functions.Functions specified in TLD for the function fn:length cannot be found: org.apache.taglibs.standard.functions.Functions

请问是缺哪个包?我有jstl.jar这个包。还缺哪个?
...全文
240 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
梅子 2010-10-12
  • 打赏
  • 举报
回复
解决了。是jar包版本的问题。谢谢大家
梅子 2010-10-12
  • 打赏
  • 举报
回复
一共引入这些:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>

已经把standard.jar和jstl.jar加入到项目中了
caimi1989 2010-10-12
  • 打赏
  • 举报
回复
要加入jstl 的标签库啊
Elim-Zhang 2010-10-12
  • 打赏
  • 举报
回复
你的jstl.jar是哪个版本的呢,建议你下个最新版的试一下,可能是版本的问题
year1234 2010-10-12
  • 打赏
  • 举报
回复
这个你引了吗?
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
梅子 2010-10-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 blazingfire 的回复:]
standard.jar
[/Quote]

这个包也有了。。。
blazingfire 2010-10-12
  • 打赏
  • 举报
回复
standard.jar

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧