Invalid action class configuration that references an unknown class問題原因之s:select

來源:互聯網
上載者:User

早先做個練習項目就出現了這個錯誤,各種查資料,然後各種嘗試,依然沒有解決,不過可以確定是前台頁面導致的。

今天又碰到了這個問題,頭疼啊。不能再略過了,使用最笨的方法,一個模組一個模組的排除。先看下我的前台代碼吧:

<form action="donewSalChance" id="newsalChance_frm" method="post"><table class="query_form_table"><tr><th>客戶名稱</th><td><input name="salChance.SCustname" id="custName" type="text" /><span class="red_star">*</span></td><th>負責人</th><td><input name="salChance.SCustmanager" id="custManager" type="text" /><span class="red_star">*</span></td></tr><tr><th>機會來源</th><td><input name="salChance.SSource" id="salSource" type="text" /></td><th>成功機率(%)</th><td><input name="salChance.SRatio" id="salRatio" type="text" /><span class="red_star">*</span></td></tr><tr><th>公司電話</th><td ><input name="salChance.SMobile" id="mobile" type="text" /><span class="red_star">*</span></td><th>客戶等級</th><td><span style="color:#FF0000;"><select name="salChance.customerlevel.levelId"><s:iterator value="custLevelList" var="level"><option value="<s:property value='#level.levelId'/>"><s:property value="#level.levelValue"/></option></s:iterator></select></span><span class="red_star">*</span></td></tr><%--<tr><th>概要</th><td><input name="salChance.SSummary" id="summary" type="text" /><span class="red_star">*</span></td><th>地區</th><td><span style="color:#FF0000;"><s:select name="salChance.customerzone" list="custZoneList" listKey="czoneId" listValue="czoneValue" theme="simple"/></span><span class="red_star">*</span></td></tr>--%><tr><th>機會描述</th><td colspan="3"><textarea id="chanceInfo" rows="6" cols="50" name="salChance.SChanceinfo"></textarea><span class="red_star">*</span></td></tr><%--<tr><th>指派給</th><td><s:select name="salChance.usersBySTosb" list="userList" listKey="UId" listValue="UUsername" theme="simple"/><span class="red_star">*</span></td><th>指派時間</th><td><input name="salChance.SDate" id="t1" readonly size="20" /><span class="red_star">*</span></td></tr>--%></table></form>
下拉框列表使用s:select實現的,但就恰恰是這個原因導致的。。。。當我把s:select都屏蔽掉後,提交完全沒有問題。

好吧,換成select標籤加s:iterator來做試試,居然成功了,呵呵。

但究竟是什麼原因,做完項目後一定得好好請教請教高手。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.