当前位置:编程学习 > JAVA >>

关于Failed to obtain specified collection错误

javax.servlet.ServletException: javax.servlet.jsp.JspException: Failed to obtain specified collection
 
报错 报错部分代码为

<table width="98%" border="0" align="center" cellpadding="4"
cellspacing="1" class="tb_input">
<tr>
<td class="td_title" width="8%">
<nobr>
年月
</nobr>
</td>
<td class="item6" width="17%"><html:text name="qd2Form" property="query.selYear" readonly="true" 
style="border: 1px solid #7F9DB9; width:120px; background:url(../images/cal_btn.png) no-repeat right;  padding-right:19px; cursor:default; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;"
onclick="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"/>
</td>

<td class="td_title" width="5%">
<nobr>
工贸
</nobr>
</td>
<logic:equal value="noDis" property="query.flag"   name="qd2Form">
<td class="item6" width="8%" id="trade">
<html:select name="qd2Form" property="query.selTrade"
onchange="showSta()" disabled="true">
<html:optionsCollection property="query.selTradeList" value="value"
label="label" />
</html:select>
</td>
</logic:equal>
<logic:notEqual value="noDis" name="qd2Form" property="query.flag">
<td class="item6" width="8%" id="trade">
<html:select name="qd2Form" property="query.selTrade"
onchange="showSta()" >
<html:optionsCollection property="query.selTradeList" value="value"
label="label" />
</html:select>
</td>
</logic:notEqual>




<td class="td_title" width="5%">
<nobr>
PL
</nobr>
</td>
<logic:equal value="noDis" property="query.flag" name="qd2Form">
<td class="item6" width="8%" id="pl">
<html:select name="qd2Form" property="query.selPl" disabled="true">
<html:optionsCollection property="query.plList" value="value"
label="label" />
</html:select>
</td>
</logic:equal>
<logic:notEqual value="noDis" name="qd2Form" property="query.flag">
<td class="item6" width="8%" id="pl">
<html:select name="qd2Form" property="query.selPl" >
<html:optionsCollection property="query.plList" value="value"
label="label" />
</html:select>
</td>
</logic:notEqual>


<td noWrap align="right">
<logic:notEqual value="noDis" name="qd2Form" property="query.flag">
<INPUT class="button" style="CURSOR: hand" type="button"
value="查询" onClick="search()" />
</logic:notEqual>
</td>
</tr>
</table>

怎么回事?希望大神解释下 在线等 --------------------编程问答-------------------- 下拉框没有值,应该是找不到集合 --------------------编程问答-------------------- 你把错误贴全了,debug 在controller返回到页面前开看页面中使用的相关变量是否符合你预设的要求。 --------------------编程问答--------------------
补充:Java ,  Java EE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,