<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 55,comments - 89,trackbacks - 0

    執(zhí)行某jsp頁(yè)面時(shí),彈出如標(biāo)題所示異常,jsp代碼如下:

    <%@ page language="java" contentType="text/html;charset=gbk" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
      </head>
     
      <body>
        This is the result:
        <c:out value="${userInfo}" default="沒有結(jié)果"/>
      </body>
    </html>


    異常的原因是不能識(shí)別“${userInfo}”,解決辦法有兩種:
    一、在page指令里,加入isELIgnored="true"屬性,即
    <%@ page language="java" contentType="text/html;charset=gbk"  isELIgnored="true" %>
    二、把<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>變?yōu)椋?br /> <%@ taglib prefix="c" uri=http://java.sun.com/jstl/core_rt  %>
    經(jīng)過改動(dòng)之后,jsp頁(yè)面能正常執(zhí)行了。
    posted on 2008-11-07 16:48 jiafang83 閱讀(27835) 評(píng)論(7)  編輯  收藏

    FeedBack:
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2008-11-18 18:37 | eyejava
    如果頁(yè)面不能識(shí)別EL表達(dá)式,頁(yè)頁(yè)上會(huì)直接原樣輸出你寫的EL表達(dá)式,這時(shí)使用方法1即可,第二種情況就跟tld有關(guān)了,必須與你的jstl.jar包定義的tld相一致,這時(shí)如果遇到“According to TLD or attribute directive in tag file, attribute value does not accept any expressions”這種異常,你可以打開自己的jstl.jar看一下它的meta-inf下相關(guān)的tld文件是如何定義相關(guān)標(biāo)簽的,一般都是引用prefix時(shí)出錯(cuò),版本原因。  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-01-04 16:13 | 熊哲
    非常感謝,我類似的問題已經(jīng)解決了  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-01-04 16:14 | 熊哲
    非常感謝,我類似的的問題已經(jīng)解決了!  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-10-17 22:42 | 月亮之城

    謝謝你,解決了困擾我很長(zhǎng)時(shí)間的問題。  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2013-05-26 00:18 | wwwzhw2012
    非常感謝,方法一解決問題  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2014-03-13 16:56 | ??
    太有用了,六年前你就知道了,現(xiàn)在我才遇到  回復(fù)  更多評(píng)論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2014-11-05 20:19 | 的撒
    終極解決www.cnblogs.com/sweetculiji/p/4077253.html  回復(fù)  更多評(píng)論
      

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 日韩免费视频观看| 久久精品亚洲中文字幕无码麻豆| 国产亚洲sss在线播放| 久久国产免费直播| 成人黄软件网18免费下载成人黄18免费视频 | 最近免费字幕中文大全视频| 亚洲精品tv久久久久| wwwxxx亚洲| 午夜视频在线免费观看| 亚洲裸男gv网站| 亚洲av成人无码网站…| 99久久99久久精品免费看蜜桃 | 白白色免费在线视频| 美女裸身网站免费看免费网站| 国产国拍精品亚洲AV片| 亚洲GV天堂无码男同在线观看| 精品国产免费人成电影在线观看 | 在线观看免费av网站| 在线亚洲人成电影网站色www| 色偷偷亚洲第一综合| 三年片在线观看免费观看高清电影 | 香蕉视频在线观看免费国产婷婷| 久久亚洲精品无码AV红樱桃| 一级女性全黄久久生活片免费| 女性无套免费网站在线看| 内射少妇36P亚洲区| 国产精品偷伦视频观看免费 | 亚洲精品少妇30p| 男人扒开添女人下部免费视频| 好吊妞788免费视频播放| 精品久久亚洲中文无码| 亚洲精品在线免费看| 亚洲人成网站影音先锋播放| 91在线视频免费观看| 国产精品亚洲高清一区二区| 国产亚洲精品精品精品| 天天拍拍天天爽免费视频| 亚洲国产精品久久网午夜| 在线a免费观看最新网站| 亚洲一区影音先锋色资源| 国产好大好硬好爽免费不卡|