<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 閱讀(27843) 評(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)航:
     
    主站蜘蛛池模板: 无码人妻精品一二三区免费| 国产亚洲精品线观看动态图| 羞羞网站在线免费观看| 国产成人精品日本亚洲专区| 日韩精品在线免费观看| 亚洲一本之道高清乱码| 亚洲 自拍 另类小说综合图区| 久久九九AV免费精品| 亚洲一区二区三区国产精华液| 亚洲无线码一区二区三区| 91频在线观看免费大全| 一区二区免费在线观看| 亚洲精品免费在线| 亚洲精品无码AV中文字幕电影网站| 91精品国产免费久久国语蜜臀| jzzijzzij在线观看亚洲熟妇| 亚洲AV日韩AV天堂久久| 国产美女无遮挡免费视频网站| 免费A级毛片无码视频| 羞羞漫画在线成人漫画阅读免费| 67pao强力打造67194在线午夜亚洲 | 亚洲综合精品成人| 国产成人精品日本亚洲专区61 | 免费观看黄色的网站| 一本到卡二卡三卡免费高| 亚洲毛片基地4455ww| 精品亚洲综合在线第一区| 四虎永久在线精品视频免费观看| 13一14周岁毛片免费| 999zyz**站免费毛片| 色偷偷亚洲男人天堂| 亚洲熟妇无码久久精品| 亚洲永久精品ww47| 四虎在线播放免费永久视频 | 亚洲一级Av无码毛片久久精品| 国产乱码免费卡1卡二卡3卡| 久久香蕉国产线看免费| 日本高清免费中文在线看 | 在线观看免费无码专区| 日本特黄特色AAA大片免费| 亚洲国产一区二区三区在线观看|