<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="沒(méi)有結(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)過(guò)改動(dòng)之后,jsp頁(yè)面能正常執(zhí)行了。
    posted on 2008-11-07 16:48 jiafang83 閱讀(27836) 評(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ì)直接原樣輸出你寫(xiě)的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”這種異常,你可以打開(kāi)自己的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 | 熊哲
    非常感謝,我類(lèi)似的問(wèn)題已經(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 | 熊哲
    非常感謝,我類(lèi)似的的問(wèn)題已經(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í)間的問(wèn)題。  回復(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
    非常感謝,方法一解決問(wèn)題  回復(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è)用戶(hù)登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 午夜在线亚洲男人午在线| 人体大胆做受免费视频| 午夜免费福利网站| 特级毛片全部免费播放a一级 | 国产美女做a免费视频软件| 日本黄页网址在线看免费不卡| 午夜影视日本亚洲欧洲精品一区 | 特级淫片国产免费高清视频| 国产免费福利体检区久久| 亚洲高清视频在线观看| 国产高清免费的视频| 久久久久久久久久国产精品免费| 亚洲欧美日本韩国| 狠狠色伊人亚洲综合成人| 国内免费高清在线观看| 伊人免费在线观看高清版| 亚洲一线产区二线产区区| 亚洲国产精品嫩草影院在线观看| 免费可以在线看A∨网站| 日韩免费高清播放器| 国产午夜亚洲精品不卡| 亚洲国产精品一区二区久| 国产综合精品久久亚洲| 美女黄网站人色视频免费国产| 99视频免费播放| 成人妇女免费播放久久久| 亚洲av成人一区二区三区观看在线 | 中文字幕亚洲情99在线| 亚洲AV综合色区无码另类小说| 免费无码成人AV片在线在线播放| 性xxxx视频免费播放直播| 九九免费观看全部免费视频| 亚洲人成色在线观看| 18亚洲男同志videos网站| 亚洲色偷拍另类无码专区| 免费又黄又爽的视频| 成人午夜性A级毛片免费| 久久午夜免费鲁丝片| 97国免费在线视频| 精品久久亚洲一级α| 欧洲 亚洲 国产图片综合|