Results 1 to 2 of 2
  1. #1
    tiiim83 is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default is it JSP problem?

    hello,

    Good Day,

    i have this kind of error on console. Can somebody help me because i'm still new in this field but i'm trying my best to finish the task given.

    The error is :

    Servlet.service() for servlet jsp threw exception
    tag 'select', field 'list', name 'socBankChargeRateCriteria.socBankChargeType.code' : The requested list key 'socBankChargeTypeDropdown' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]

    This is my jsp codes (i'm pointing to spot error )

    <div id="searchDiv"><s:form
    action="performLoadSearch_socbankchargerate.s2" id="searchForm">
    <table width="100%" cellspacing="0" cellpadding="2" border="0"
    align="left">
    <tr>
    <td>
    <table width="100%" cellspacing="3" cellpadding="2" border="0"
    class="codes">
    <tr>
    <td width="150px" class="label" valign="top"><s:text
    name="crt.soc.bank.charge.type.code" /></td>
    <td width="5px" class="label" valign="top">&nbsp;:</td>
    <td width="20px" class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top">
    <s:select name="socBankChargeRateCriteria.socBankChargeType. code" id="criteriaSocBankChargeRate" headerKey="" headerValue="-- Please Select --" list="socBankChargeTypeDropdown" listValue="%{code + ' ' + desc}" listKey="code" />
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td align="right">
    <input type="button" value="Search" class="btn" onclick="javascript:submitForm(this.form,'performL oadSearch_socbankchargerate.s2',1)">
    &nbsp; <input type="button" value="Reset" class="btn" onclick="javascript:resetSearchForm()">
    </td>
    </tr>
    </table>
    </s:form></div>

    <div id="addDiv"><s:form action="performAdd_socbankchargerate.s2"
    id="addForm">
    <table width="100%" cellspacing="0" cellpadding="2" border="0"
    align="left">
    <tr>
    <td>
    <table width="100%" cellspacing="3" cellpadding="2" border="0"
    class="codes">
    <tr>
    <td width="150px" class="label" valign="top"><s:text name="crt.soc.bank.charge.type.code" /></td>
    <td width="5px" class="label" valign="top">&nbsp;:</td>
    <td width="20px" class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top">
    <!-- <s:textfield name="newSocBankChargeRate.socBankChargeType.code" id="newSocBankChargeType" size="5" maxlength="5" onchange="toUpperAndTrim(this)"/> -->
    <s:select name="newSocBankChargeRate.socBankChargeType.code" id="newSocBankChargeType" headerKey="" headerValue="-- Please Select --" list="socBankChargeTypeDropdown" listValue="%{code + ' ' + desc}" listKey="code" /> &nbsp;
    <img src="<s:text name='asterisk'/>" title="<s:text name='mandatory'/>" />
    </td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.effDate" />
    </td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top">
    <s:textfield name="newSocBankChargeRate.effDate" id="newEffDate" size="8" maxlength="12" onchange="toUpperAndTrim(this)" />
    <img src="<s:text name='calendar'/>" border="0" style="cursor: hand;" onClick="popFrame.fPopCalendar(document.all.newEff Date,document.all.newEffDate,popCal, '-');return false" width="19" height="15"> &nbsp;
    <img src="<s:text name='asterisk'/>" title="<s:text name='mandatory'/>" />
    </td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.soc.bank.rate.pct" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="newSocBankChargeRate.socBankRatePct" id="newSocBankRatePct" size="10" maxlength="10" onchange="toUpperAndTrim(this)" /> &nbsp;
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.soc.bank.rate.amt" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="newSocBankChargeRate.socBankRateAmt" id="newSocBankRateAmt" size="14" maxlength="14" onchange="toUpperAndTrim(this)" /></td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.termDate" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="newSocBankChargeRate.termDate" id="newTermDate" size="8" maxlength="12" onchange="toUpperAndTrim(this)" />
    <img src="<s:text name='calendar'/>" border="0" style="cursor: hand;" onClick="popFrame.fPopCalendar(document.all.newTer mDate,document.all.newTermDate,popCal, '-');return false"
    width="19" height="15"> &nbsp;</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td align="right"><input type="button" value="Add" class="btn"
    onclick="javascript:submitForm(this.form,'performA dd_socbankchargerate.s2',2)">
    &nbsp; <input type="button" value="Reset" class="btn"
    onclick="javascript:resetAddForm()"></td>
    </tr>
    </table>
    </s:form></div>

    <div id="editDiv"><s:form
    action="performUpdate_socbankchargerate.s2" id="editForm">
    <table width="100%" cellspacing="0" cellpadding="2" border="0"
    align="left">
    <tr>
    <td>
    <table width="100%" cellspacing="3" cellpadding="2" border="0"
    class="codes">
    <tr>
    <td width="150px" class="label" valign="top"><s:text name="crt.id.num" /></td>
    <td width="5px" class="label" valign="top">&nbsp;:</td>
    <td width="20px" class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top">
    <s:textfield name="updatedSocBankChargeRate.socBankChrgRateIdNu m" id="updatedSocBankChrgRateIdNum" size="12" maxlength="12" readonly="true" onchange="toUpperAndTrim(this)" />
    </td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text
    name="crt.soc.bank.charge.type.code" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="updatedSocBankChargeRate.socBankChargeType.c ode" id="updatedSocBankChargeType" size="5" maxlength="5" readonly="true" onchange="toUpperAndTrim(this)" /></td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.effDate" />
    </td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="updatedSocBankChargeRate.effDate" id="updatedEffDate" size="8" maxlength="12" readonly="true" onchange="toUpperAndTrim(this)" /></td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text
    name="crt.soc.bank.rate.pct" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="updatedSocBankChargeRate.socBankRatePct" id="updatedSocBankRatePct" size="5" maxlength="7" readonly="true" onchange="toUpperAndTrim(this)" />
    </td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text
    name="crt.soc.bank.rate.amt" /></td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="updatedSocBankChargeRate.socBankRateAmt" id="updatedSocBankRateAmt" size="14" maxlength="14" readonly="true" onchange="toUpperAndTrim(this)" /></td>
    </tr>
    <tr>
    <td class="label" valign="top"><s:text name="crt.termDate" />
    </td>
    <td class="label" valign="top">&nbsp;:</td>
    <td class="label" valign="top">&nbsp;</td>
    <td class="data" valign="top"><s:textfield name="updatedSocBankChargeRate.termDate" id="updatedTermDate" />
    <img src="<s:text name='calendar'/>" border="0" style="cursor: hand;" onClick="popFrame.fPopCalendar(document.all.newTer mDate,document.all.newTermDate,popCal, '-');return false" width="19" height="15">
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td align="right"><input type="button" value="Update"
    class="btn"
    onclick="javascript:submitForm(this.form,'performU pdate_socbankchargerate.s2',3)">
    &nbsp; <input type="button" value="Reset" class="btn" onclick="javascript:resetEditForm()"></td>
    </tr>
    </table>
    </s:form></div>

    </div>
    </div>
    </div>

    <div class="divisionSeparator"><s:form
    action="performSearch_socbankchargerate.s2">
    <font class="subTitle"><s:text name="crt.soc.bank.charge.rate" />&nbsp;:</font>
    <table width="100%" cellspacing="0" cellpadding="2" border="0"
    align="left">
    <tr>
    <td><s:if
    test="#session.CRT_LIST!=null && !#session.CRT_LIST.isEmpty()">
    <%
    ResourceBundle bundle = ResourceBundle
    .getBundle(IWebConstants.WEB_RESOURCES);
    %>
    <display:table id="resultTbl"
    excludedParams="newSocBankChargeRate.socBankCharge Type.code newSocBankChargeRate.effDate newSocBankChargeRate.socBankRatePct newSocBankChargeRate.socBankRateAmt newSocBankChargeRate.termDate"
    cellpadding="0" cellspacing="1" name="sessionScope.CRT_LIST"
    pagesize="<%=CashUtility.getPagingSize(request)%>"
    requestURI="performLoadSearch_socbankchargerate.s2 "
    class="searchResults displaytagTblWidth">
    <display:setProperty name="paging.banner.placement" value="bottom" />
    <display:column class="search generalnowidth" headerClass="centerAlign" title="<%=bundle.getString("general.no")%>">
    <div style="text-align: middle">
    <s:property value="#attr.resultTbl_rowNum" />
    </div>
    </display:column>
    <display:column class="search" headerClass="centerAlign" title="<%=bundle.getString("crt.id.num")%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.socBankChrgRateIdNum" />
    <s:hidden name="#attr.resultTbl.socBankChrgRateIdNum" /></div>
    </display:column>
    <display:column class="search" headerClass="centerAlign" title="<%=bundle.getString("crt.soc.bank.charge.ty pe.code")%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.socBankChargeType.code" />
    <s:hidden name="#attr.resultTbl.socBankChargeType.descriptio n" /></div>
    </display:column>
    <display:column class="search" headerClass="centerAlign" title="<%=bundle.getString("crt.effDate")%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.effDate" />
    <s:hidden name="#attr.resultTbl.effDate" />
    </div>
    </display:column>
    <display:column class="search" headerClass="centerAlign"
    title="<%=bundle.getString("crt.soc.bank.rate.pct" )%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.socBankRatePct" />
    <s:hidden name="#attr.resultTbl.socBankRatePct" />
    </div>
    </display:column>
    <display:column class="search" headerClass="centerAlign" title="<%=bundle.getString("crt.soc.bank.rate.amt" )%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.socBankRateAmt" />
    <s:hidden name="#attr.resultTbl.socBankRateAmt" />
    </div>
    </display:column>
    <display:column class="search" headerClass="centerAlign" title="<%=bundle.getString("crt.termDate")%>">
    <div style="text-align: left">
    <s:property value="#attr.resultTbl.termDate" />
    <s:hidden name="#attr.resultTbl.termDate" />
    </div>
    </display:column>
    </display:table>
    <script language="JavaScript" src="<s:text name='js'/>tableRowOnClickScript_displayTag.js"></script>
    </s:if> <s:else>
    <table class="displaytagTblWidth noresultsfoundheight" cellpadding="0" cellspacing="1">
    <tr class="search2">
    <td align="center"><s:text name="no.results.found" /></td>
    </tr>
    </table>
    </s:else></td>
    </tr>
    </table>
    </s:form></div>

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    You are using a tag library, which allows your to put HTML-style tags in your JSP. The servlet engine then processes the tags and inserts HTML in their place. The problem lies with your tag library. You specified "socBankChargeTypeDropdown" as the source of values for your list, and the tag processor can't find it. The problem could be as simple as a spelling error.

    Find out who created the tag library and determine the correct name of the list values object.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •