A web application developed for JSP 1.2 has a servlet 2.3 deployment descriptor (web.xml). JSP 2.0 provides backwards compatibility for JSP 1.2 web applications by disabling by default the EL machinery (i.e. evaluation of EL expressions) when a web application has a servlet 2.3 deployment descriptor. A web application that uses JSTL 1.0 and which is deployed with a servlet 2.3 deployment descriptor therefore runs without any modification in a J2EE 1.4 environment because EL expressions are ignored by JSP 2.0, and JSTL 1.0 keeps evaluating them as was the case with JSP 1.2.
To support backwards compatibility, JSTL 1.1 introduces new URIs that must be specified to use the new capabilities offered in JSTL 1.1. Among these new capabilities is the evaluation of EL expressions being performed by the JSP 2.0 container rather than JSTL itself. The new URIs for JSTL 1.1 are as follows:
The JSTL 1.0 URIs are deprecated as of JSTL 1.1. If used, they should normally appear in a web application that has a servlet 2.3 deployment descriptor to disable the JSP 2.0 EL machinery. If used with a servlet 2.4 deployment descriptor, the JSP 2.0 EL machinery must be explicitely disabled for the pages where the JSTL 1.0 tag libraries are used. Consult the JSP specification for details.
http://jcp.org/aboutJava/communityprocess/final/jsr052/JSR52-ChangeLog_1.1_Final.html
JSP EL琛ㄨ揪寮?br />
JSP EL琛ㄨ揪寮忔槸鍖呭惈鍦ㄧ鍙?#8220;${"涓?}”涔嬮棿銆備緥濡傦紝${4*8}鏄竴涓狤L琛ㄨ揪寮忋傚湪Java鏈嶅姟鍣ㄦ妧鏈腑錛屼笉鍐嶄繚鐣?#8220;${"鍜?}”絎﹀彿浣滀負(fù)EL琛ㄨ揪寮忕殑涓撶敤絎﹀彿銆傛墽琛岃〃杈懼紡鏃訛紝JSP瀹瑰櫒鍙兘灝嗗ぇ鎷彿瑙嗕負(fù)寰幆鐨勮搗濮嬫嫭鍙瘋(gè)屾樉紺洪敊璇紝鎴栧緱鍑洪敊璇殑杈撳嚭緇撴灉銆傚洜姝わ紝鏈夋椂闇瑕佷嬌鐢╥sElgnored灞炴х鐢‥L琛ㄨ揪寮忔槸銆?br />
Servlet2.3瑙勮寖鏈畾涔塃L琛ㄨ揪寮忥紝鍥犳鍦↗SP1.2涓粯璁ゆ槸紱佺敤EL琛ㄨ揪寮忥紝濡傛灉鍦↗SP欏甸潰涓嚭鐜癝ervlet2.3EL琛ㄨ揪寮忥紝灝嗚蹇界暐銆係ervlet2.4瀹氫箟浜?jiǎn)EL琛ㄨ揪寮忕殑妯″紡錛岃孞SP2.0涓粯璁ゅ惎鐢↗SP EL琛ㄨ揪寮忋?br />
<% @page isELIgnored = "true|false"%>
鍏朵腑錛宲age琛ㄧず欏甸潰鎸囦護(hù)錛宨sELIgnored紜畾鏄惁搴斿拷鐣ュEL琛ㄨ揪寮忚繘琛岃綆椼?br />
濡傛灉isELIgnored璁劇疆涓簍rue錛屽綋EL琛ㄨ揪寮忓湪闈?rùn)鎬佹枃鏈垨鏍囩灞炴т腑鍑虹幇鏃跺皢琚拷鐣ワ紱濡傛灉isELIgonred璁劇疆涓篺alse錛孍L琛ㄨ揪寮忓垯鐢盝SP瀹瑰櫒榪涜璁$畻銆?br />
鏈枃鏉ユ簮浜庯細(xì)灝煎厠鎶鏈崥瀹?http://www.ineeke.cn/ , 鍘熸枃鍦板潃錛歨ttp://www.ineeke.cn/archives/233/