<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

    執行某jsp頁面時,彈出如標題所示異常,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="沒有結果"/>
      </body>
    </html>


    異常的原因是不能識別“${userInfo}”,解決辦法有兩種:
    一、在page指令里,加入isELIgnored="true"屬性,即
    <%@ page language="java" contentType="text/html;charset=gbk"  isELIgnored="true" %>
    二、把<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>變為:
    <%@ taglib prefix="c" uri=http://java.sun.com/jstl/core_rt  %>
    經過改動之后,jsp頁面能正常執行了。
    posted on 2008-11-07 16:48 jiafang83 閱讀(27835) 評論(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
    如果頁面不能識別EL表達式,頁頁上會直接原樣輸出你寫的EL表達式,這時使用方法1即可,第二種情況就跟tld有關了,必須與你的jstl.jar包定義的tld相一致,這時如果遇到“According to TLD or attribute directive in tag file, attribute value does not accept any expressions”這種異常,你可以打開自己的jstl.jar看一下它的meta-inf下相關的tld文件是如何定義相關標簽的,一般都是引用prefix時出錯,版本原因。  回復  更多評論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-01-04 16:13 | 熊哲
    非常感謝,我類似的問題已經解決了  回復  更多評論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-01-04 16:14 | 熊哲
    非常感謝,我類似的的問題已經解決了!  回復  更多評論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2012-10-17 22:42 | 月亮之城

    謝謝你,解決了困擾我很長時間的問題。  回復  更多評論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2013-05-26 00:18 | wwwzhw2012
    非常感謝,方法一解決問題  回復  更多評論
      
    # re: According to TLD or attribute directive in tag file, attribute value does not accept any expressions
    2014-03-13 16:56 | ??
    太有用了,六年前你就知道了,現在我才遇到  回復  更多評論
      
    # 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  回復  更多評論
      

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 毛片A级毛片免费播放| 亚洲成a人片在线观看无码专区| 男女啪啪免费体验区| 亚洲国产另类久久久精品小说 | 亚洲成综合人影院在院播放| 成年人免费视频观看| 久久久久国色AV免费观看| 亚洲综合一区二区精品久久| 免费国产怡红院在线观看| 91精品全国免费观看含羞草| 亚洲AⅤ男人的天堂在线观看| 国产日韩亚洲大尺度高清| 四虎影院在线免费播放| 青青操免费在线视频| 亚洲精品宾馆在线精品酒店| 亚洲AV午夜成人片| 日韩激情无码免费毛片| 97青青草原国产免费观看| 日韩色视频一区二区三区亚洲 | 免费看黄福利app导航看一下黄色录像 | 99在线免费观看视频| 特级av毛片免费观看| 亚洲色图古典武侠| 色噜噜AV亚洲色一区二区| 成人免费毛片内射美女APP| a级毛片毛片免费观看永久| 欧美亚洲精品一区二区| 亚洲成人免费网址| 好看的亚洲黄色经典| 免费在线观看的黄色网址| 欧亚精品一区三区免费| 国产精品免费看久久久无码| 亚洲欧洲日产韩国在线| 亚洲日韩精品一区二区三区| 国产成人免费A在线视频| 999久久久免费精品国产| 久久免费视频99| 国产一区二区三区免费观在线| 亚洲另类自拍丝袜第五页| 亚洲六月丁香六月婷婷蜜芽| 亚洲成色999久久网站|