如何在jsp中进行子字符串? [英] How to substring in jsp?

查看:25
本文介绍了如何在jsp中进行子字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 JSP 文件中使用 struts2 技术进行子字符串化?我的意思是,struts2 有自己的 taglib,也使用了 ognl.如何从堆叠值或 bean 值中获取子字符串?

Is there a way to substring in JSP files, using struts2 technologies? I mean, struts2 has its own taglib and also uses ognl. How can I get a substring from a stacked value or bean value?

推荐答案

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html

查找 fn:substring 及其变体.

Look for fn:substring and its variants.

我用过 Struts 1,但不是 2.

I've used Struts 1, but not 2.

这篇关于如何在jsp中进行子字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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