我正在尝试比较一个使用jstl结尾的功能及其无效的网址
这是我的代码
<c:set var="str" value="http://i.imgur.com/tdC9If1.jpg" />
<c:out value="${str}"/>
<c:if test="${fn:endsWith(str,'jpg') }">
<p>ends with String</p>
</c:if>
<c:set var="theString" value="I am a test String 123"/>
<c:if test="${fn:endsWith(theString, '123')}">
<p>String ends with 123<p>
</c:if>
我得到的输出是
http://i.imgur.com/tdC9If1.jpg
String ends with 123
你们可以弄清楚它出了什么问题。
我的目标运行时是App engine 1.9.6