JSTL 1.0字符串函数 [英] JSTL 1.0 String Functions

查看:71
本文介绍了JSTL 1.0字符串函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过JSTL使用某些字符串函数,例如trim或 concat .我尝试了以下方法.

I am trying to use some string functions like trim or concat using JSTL. I tried the following.

我尝试添加<%@ taglib prefix ="fn" uri ="http://java.sun.com/jsp/jstl/functions"%> ,但最终错误.我认为这适用于其他JSTL版本,例如1.2或1.1

I tried adding <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> but I ended up with the error. I think this is for other JSTL version like 1.2 or 1.1

我只需要知道如何在JSTL 1.0中使用字符串函数

All I would need to know is how to use string function in JSTL 1.0

推荐答案

JSTL 1.0在taglib URI中没有/jsp 部分.删除该部分.

JSTL 1.0 does not have the /jsp part in the taglib URI. Remove that part.

<%@ taglib prefix="fn" uri="http://java.sun.com/jstl/functions" %>

另请参见:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆