当前位置: 代码迷 >> Java Web开发 >> 运作项目,java.lang.ClassCastException: java.lang.Long
  详细解决方案

运作项目,java.lang.ClassCastException: java.lang.Long

热度:4389   发布时间:2016-04-10 23:35:51.0
运行项目,java.lang.ClassCastException: java.lang.Long
&_BMSProductManagerProductAudit_WAR_BMSProductManagerportlet_billingMode=1 generates exception: java.lang.Long


这是jsp页面的错误显示。
这个地方的jsp代码是:
<%--计费模式 --%>
<aui:select name="productBillingmode" label="product-billingmode" showEmptyOption="false"
disabled="true" style="width:350px">
<c:choose>
<c:when test="${product.billingMode==1}">
<aui:option label="product.billingmode.by.time" value="1" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.by.time" value="1" />
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${product.billingMode==2}">
<aui:option label="product.billingmode.month" value="2" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.month" value="2" />
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${product.billingMode==3}">
<aui:option label="product.billingmode.limit.month" value="3" selected="true" />
</c:when>
<c:otherwise>
<aui:option label="product.billingmode.limit.month" value="3" />
</c:otherwise>
</c:choose>
</aui:select>
<%--计次有效时长--%>
<aui:field-wrapper>
<c:choose>
<c:when test="${product.billingMode==1}">
<aui:input  label="product-effectiveduration" name="effectiveDuration" value="${product.effectiveDuration }" 
disabled="true" style="width:350px" suffix="product.effectiveduration.hour">
</aui:input>
</c:when>
</c:choose>
</aui:field-wrapper>

------解决方案--------------------
看下     ${product.billingMode}是多少?
  相关解决方案