Jsp “如何连接字符”;符号「;输入JSTL
我想显示以下文本:例如,索引/大小;1/5,我写了以下标签:Jsp “如何连接字符”;符号「;输入JSTL,jsp,jstl,Jsp,Jstl,我想显示以下文本:例如,索引/大小;1/5,我写了以下标签: <c:out value="${blocCourant.titre} ${fn:length(blocCourant.questions)>1 ? questionCourante.indice '/' fn:length(blocCourant.questions) : ''}" escapeXml="false" /> 我也试过了,但
<c:out value="${blocCourant.titre} ${fn:length(blocCourant.questions)>1 ? questionCourante.indice '/'
fn:length(blocCourant.questions) : ''}" escapeXml="false" />
我也试过了,但没有如下效果:
<c:out value="${blocCourant.titre} ${fn:length(blocCourant.questions)>1 ? questionCourante.indice /
fn:length(blocCourant.questions) : ''}" escapeXml="false" />
打破你的逻辑
试试这个
<c:if test="${fn:length(blocCourant.questions)>1}">
<c:out value="${blocCourant.titre} questionCourante.indice / ${fn:length(blocCourant.questions)}" escapeXml="false" />
</c:if>
打破你的逻辑
试试这个
<c:if test="${fn:length(blocCourant.questions)>1}">
<c:out value="${blocCourant.titre} questionCourante.indice / ${fn:length(blocCourant.questions)}" escapeXml="false" />
</c:if>
不应该是这样吗?-``难道不是这样吗?-``它应该是${questionCourante.indice}而不是questionCourante.indice。它应该是${questionCourante.indice}而不是questionCourante.indice