未终止的
大家好,我试图做一系列的检查来连接我想要减去和格式化的两个数字。这可能吗?或者有其他选择吗?我在标题中得到了这个错误。谢谢
<td><fmt:formatNumber value='${'
<c:choose>
<c:when test="${columnB == 'MWS'}">'line.initialQS.quantities[0]'</c:when>
<c:when test="${columnB == 'SMC Unfunded'}">'line.expectedUnfundedQS.quantities[0]'</c:when>
<c:when test="${columnB == 'SMC Funded'}">'line.expectedFundedQS.quantities[0]'</c:when>
<c:when test="${columnB == 'MMC'}">'line.targetQS.quantities[0]'</c:when>
<c:when test="${columnB == 'Current Scenario'}">'line.currentQS.quantities[0]'</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
' - '
<c:choose>
<c:when test="${columnA == 'MWS'}">'line.initialQS.quantities[0]'</c:when>
<c:when test="${columnA == 'SMC Unfunded'}">'line.expectedUnfundedQS.quantities[0]'</c:when>
<c:when test="${columnA == 'SMC Funded'}">'line.expectedFundedQS.quantities[0]'</c:when>
<c:when test="${columnA == 'MMC'}">'line.targetQS.quantities[0]'</c:when>
<c:when test="${columnA == 'Current Scenario'}">'line.currentQS.quantities[0]'</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
'}'
type="number" maxIntegerDigits='10' minFractionDigits='0' maxFractionDigits='2' groupingUsed='true' /></td>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web
技术交流群。
大家好,我试图做一系列的检查来连接我想要减去和格式化的两个数字。这可能吗?或者有其他选择吗?我在标题中得到了这个错误。谢谢
<td><fmt:formatNumber value='${'
<c:choose>
<c:when test="${columnB == 'MWS'}">'line.initialQS.quantities[0]'</c:when>
<c:when test="${columnB == 'SMC Unfunded'}">'line.expectedUnfundedQS.quantities[0]'</c:when>
<c:when test="${columnB == 'SMC Funded'}">'line.expectedFundedQS.quantities[0]'</c:when>
<c:when test="${columnB == 'MMC'}">'line.targetQS.quantities[0]'</c:when>
<c:when test="${columnB == 'Current Scenario'}">'line.currentQS.quantities[0]'</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
' - '
<c:choose>
<c:when test="${columnA == 'MWS'}">'line.initialQS.quantities[0]'</c:when>
<c:when test="${columnA == 'SMC Unfunded'}">'line.expectedUnfundedQS.quantities[0]'</c:when>
<c:when test="${columnA == 'SMC Funded'}">'line.expectedFundedQS.quantities[0]'</c:when>
<c:when test="${columnA == 'MMC'}">'line.targetQS.quantities[0]'</c:when>
<c:when test="${columnA == 'Current Scenario'}">'line.currentQS.quantities[0]'</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
'}'
type="number" maxIntegerDigits='10' minFractionDigits='0' maxFractionDigits='2' groupingUsed='true' /></td>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为值定义变量:
然后进行计算或格式化:
Define variables for the values:
Then do your calculations or formatting: