estelleup

JSTL遇到的问题

1.jstl 中不可以用关键字命名 例如class new。

2.jstl取值的问题 如果jstl通过对象.属性取值 属性值中包括特殊字符(例如:31/20180131195356867.txt","size":8,"suffix":"txt"}) ,在jsp页面取值时需要引入:JSTL Funciton

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

特殊字符需要转义:<input type="text" value="${fn:escapeXml(user.name)}" />

posted on 2018-01-31 23:19 自渡 阅读(...) 评论(...) 编辑 收藏

分类:

技术点:

相关文章:

  • 2021-04-08
  • 2022-01-08
  • 2021-08-16
  • 2021-11-15
  • 2021-09-09
  • 2021-07-06
  • 2021-10-29
  • 2021-10-31
猜你喜欢
  • 2021-08-18
  • 2022-03-04
  • 2022-01-28
  • 2021-04-15
  • 2021-11-27
  • 2021-12-31
  • 2022-01-07
相关资源
相似解决方案