<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 閱讀(27843) 評論(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  回復  更多評論
      

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


    網站導航:
     
    主站蜘蛛池模板: 日本免费一区二区久久人人澡 | 69视频免费观看l| 国产成人毛片亚洲精品| 老司机福利在线免费观看| 凹凸精品视频分类国产品免费| 亚洲av无一区二区三区| 免费无码黄网站在线观看| 亚洲.国产.欧美一区二区三区| 日本牲交大片免费观看| 黄网站色成年片大免费高清| 亚洲AV无码乱码在线观看牲色 | 亚洲精品无码MV在线观看| 青青操免费在线视频| 亚洲成人在线电影| 国产精品视频免费观看| 伊人久久五月丁香综合中文亚洲| 国内自产少妇自拍区免费| 黄色片网站在线免费观看| 亚洲人成影院在线观看| a级毛片在线视频免费观看| 99人中文字幕亚洲区| 一二三四免费观看在线电影| 亚洲av无码有乱码在线观看| 亚洲国产成人久久综合一区77| 中文字幕成人免费高清在线 | 免费鲁丝片一级在线观看| 国产亚洲精品成人久久网站| 一区国严二区亚洲三区| 中文字幕不卡高清免费| 亚洲AV无码久久久久网站蜜桃| 日本最新免费不卡二区在线| a色毛片免费视频| 7777久久亚洲中文字幕| 亚洲AV伊人久久青青草原| 久久aa毛片免费播放嗯啊| 亚洲乱人伦中文字幕无码| 浮力影院亚洲国产第一页| 成人免费激情视频| 一级毛片aa高清免费观看| 亚洲制服丝袜精品久久| 亚洲欧洲久久av|