<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)航:
     
    主站蜘蛛池模板: 国产L精品国产亚洲区久久| 日韩免费一区二区三区在线| 免费看片免费播放| 亚洲一区AV无码少妇电影| 免费国产作爱视频网站| 亚洲成在人线电影天堂色| 一级特黄aa毛片免费观看| 久久亚洲sm情趣捆绑调教| 一区二区免费视频| 亚洲人成在线中文字幕| 在线天堂免费观看.WWW| 亚洲精品GV天堂无码男同| 免费精品国产自产拍观看| 国产成人精品免费视频大全| 亚洲一区二区三区乱码A| 青青操免费在线观看| 亚洲一区二区三区首页| 中文字幕av无码无卡免费| 亚洲人成网站在线在线观看| 国产免费观看青青草原网站| 一级女性全黄久久生活片免费| 在线精品亚洲一区二区小说| 久久亚洲免费视频| 亚洲人成在线播放| 亚洲国产一成久久精品国产成人综合| 中文字幕在线免费播放| 亚洲伦理一二三四| 四虎免费永久在线播放| 国产伦精品一区二区免费| 老司机亚洲精品影院| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 欧洲乱码伦视频免费国产| 亚洲色无码专区在线观看| 2019中文字幕在线电影免费 | 亚洲综合精品香蕉久久网97| 久久不见久久见中文字幕免费| 看一级毛片免费观看视频| 亚洲成色WWW久久网站| 成年美女黄网站18禁免费| CAOPORM国产精品视频免费| 亚洲精品午夜在线观看|