免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版
打開APP
未登錄
開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服
開通VIP
首頁
好書
留言交流
下載APP
聯(lián)系客服
解決EL表達(dá)式不能用的幾種方法
soft_xiang
>《Java》
2010.12.29
關(guān)注
首先復(fù)制一下代碼到一個(gè)新建的JSP中。。。
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<%@ taglib uri="
<HTML>
<%
request.setAttribute("test", "test-----------------------");
%>
<BODY>
this is a page for test el...<br/>
data:${test}
</BODY>
</HTML>
訪問這個(gè)JSP。。
如果能出現(xiàn)如下內(nèi)容則說明el表達(dá)式是沒問題的。。
this is a page for test el...
data:test-----------------------
一般都會(huì)沒什么問題的,另使用EL應(yīng)該注意的一個(gè)問題。。。
查看web.xml中的
<web-app version="2.5" xmlns="
http://java.sun.com/xml/ns/javaee
官方文檔
The isELIgnored Attribute
• Format
– <%@ page isELIgnored="false" %>
– <%@ page isELIgnored="true" %>
Purpose
– To control whether the JSP 2.0 Expression Language
(EL) is ignored (true) or evaluated normally (false).
• Notes
– If your web.xml specifies servlets 2.3 (corresponding to
JSP 1.2) or earlier, the default is true
• But it is still legal to change the default—you are permitted
to use this attribute in a JSP-2.0-compliant server
regardless of the web.xml version.
– If your web.xml specifies servlets 2.4 (corresponding to
JSP 2.0) or earlier, the default is false
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)
。
打開APP,閱讀全文并永久保存
查看更多類似文章
猜你喜歡
類似文章
IDEA下maven項(xiàng)目無法提示和使用EL表達(dá)式的解決辦法
jsp中禁用el表達(dá)式
JSTL標(biāo)簽EL表達(dá)式學(xué)習(xí) -- 含學(xué)習(xí)結(jié)構(gòu)圖
入門教程:JSP標(biāo)準(zhǔn)模板庫
推薦一篇關(guān)于JSTL的好文章
剖析el表達(dá)式 (取url地址)
更多類似文章 >>
生活服務(wù)
首頁
萬象
文化
人生
生活
健康
教育
職場(chǎng)
理財(cái)
娛樂
藝術(shù)
上網(wǎng)
留言交流
回頂部
聯(lián)系我們
分享
收藏
點(diǎn)擊這里,查看已保存的文章
導(dǎo)長(zhǎng)圖
關(guān)注
一鍵復(fù)制
下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!
聯(lián)系客服
微信登錄中...
請(qǐng)勿關(guān)閉此頁面
先別劃走!
送你5元優(yōu)惠券,購買VIP限時(shí)立減!
5
元
優(yōu)惠券
優(yōu)惠券還有
10:00
過期
馬上使用
×