如果web.xml內的version是2.5
即
web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5"
就要在jsp前加上
.... pageEncoding="UTF-8" isELIgnored="false"
2.4版的就不用因為EL預設就是ingore為false
web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
2010年7月8日 星期四
訂閱:
張貼留言 (Atom)
AI 時代的影響(2026-10-24的心得)
寫了半個世紀程式、 曾出版《Clean Code》教全世界工程師把程式碼寫乾淨的 Robert C. Martin(Uncle Bob), 最近公開表示他已經有超過 95% 的時間不再逐行閱讀 AI 寫的程式碼。 一位一生都在強調「程式碼是寫給人讀的」宗師級人物,何以敢做出...
-
這次專案是對既有的DB資料來開發系統,用到 Mybatis的 generator 和 dynamic sql 產生mapper及sql語法(不用寫任何的xml及欄位對應) 其中selectByExample 是對所有欄位都取出,但條件是依照web UI所輸入的欄位動態產生whe...
-
Env. restriction : request and response are both JSON format . Version of Jmeter is higher and equal to 2.6 1. Add new test plan 2. ...
-
因為使用alpine的base image,要讓OS的時區改成自己設定就需要額外安裝tzdata套件,再加上公司環境根本不能連外進行安裝,所以想在docker file設定 ENV TZ=“Asia/Taipei” 或mount volumn使用host的時區 /etc/tim...
沒有留言:
張貼留言