乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      解決EL表達(dá)式不能用的幾種方法

       soft_xiang 2010-12-29
      首先復(fù)制一下代碼到一個(gè)新建的JSP中。。。
      <%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
      <%@ taglib uri="http://java./jsp/jstl/core" prefix="c"%>
      <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為2.4或以上的話isELIgnored默認(rèn)為false,以前的版本默認(rèn)為true,需手動(dòng)在頁面中加入isELIgnored="false"。。。
       
      官方文檔
      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

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多