如何在 JSTL 中将 char "symbol" 连接到 String
How to concatenate char "symbol" to String in JSTL
我想显示以下文字:例如index/size; 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:if test="${fn:length(blocCourant.questions)>1}">
<c:out value="${blocCourant.titre} questionCourante.indice / ${fn:length(blocCourant.questions)}" escapeXml="false" />
</c:if>
我想显示以下文字:例如index/size; 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:if test="${fn:length(blocCourant.questions)>1}">
<c:out value="${blocCourant.titre} questionCourante.indice / ${fn:length(blocCourant.questions)}" escapeXml="false" />
</c:if>