jsp中el運算式遇見的問題

來源:互聯網
上載者:User

標籤:org.apache.jasper.jasperexception: an exception occurred processing jsp page /web-inf/jsp/list.jsp at line 58

概述:

   之前在jsp頁面展示中就遇見過幾次這樣的問題,今天來說一下我遇到的

org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/list.jsp at line 58

異常;

  首先這個錯誤出現在訪問controller層的list.action方法:

650) this.width=650;" src="https://s4.51cto.com/wyfs02/M00/A4/A1/wKioL1muobvBWE9sAADX-yTVuQU436.png-wh_500x0-wm_3-wmp_4-s_4103101864.png" title="捕獲.PNG" alt="wKioL1muobvBWE9sAADX-yTVuQU436.png-wh_50" />

在輸入http://localhost:8080/Smil/list.action 後就出現了如下的錯誤:

650) this.width=650;" src="https://s4.51cto.com/wyfs02/M01/A4/A1/wKioL1muokfzfb7zAAEHdwYfE-Y083.png-wh_500x0-wm_3-wmp_4-s_2236764232.png" title="捕獲.PNG" alt="wKioL1muokfzfb7zAAEHdwYfE-Y083.png-wh_50" />

錯誤原因是:

650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/A4/A1/wKioL1muooaQ29I3AAAp5u9ait4612.png-wh_500x0-wm_3-wmp_4-s_3411982123.png" title="捕獲.PNG" alt="wKioL1muooaQ29I3AAAp5u9ait4612.png-wh_50" />

在list.jsp中el運算式應該是‘${pb.productList}‘,pb是650) this.width=650;" src="https://s3.51cto.com/wyfs02/M02/05/F0/wKiom1mupJLSjkkdAACAQ6issnI826.png-wh_500x0-wm_3-wmp_4-s_3017546867.png" title="捕獲.PNG" alt="wKiom1mupJLSjkkdAACAQ6issnI826.png-wh_50" />

650) this.width=650;" src="https://s3.51cto.com/wyfs02/M01/A4/A1/wKioL1muo-_SwB6wAAFiJc8K5MM553.png-wh_500x0-wm_3-wmp_4-s_3178746138.png" title="捕獲.PNG" alt="wKioL1muo-_SwB6wAAFiJc8K5MM553.png-wh_50" />

實際上pb代表的是PageBean類,productList這個類中有一個每頁展示資料的屬性:

650) this.width=650;" src="https://s3.51cto.com/wyfs02/M02/A4/A1/wKioL1mupPeRom0BAADvMHKKmco897.png-wh_500x0-wm_3-wmp_4-s_626712614.png" title="捕獲.PNG" alt="wKioL1mupPeRom0BAADvMHKKmco897.png-wh_50" />

這樣改過來問題就解決了;


jsp中el運算式遇見的問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.