posts - 33,  comments - 11,  trackbacks - 0
          1、web.xml文件里加上以下配置
          <jsp-config>
              <taglib>
                <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
                <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
                <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
                <taglib-location>/WEB-INF/tld/sql.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
                <taglib-location>/WEB-INF/tld/x.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>/tags/struts-bean</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>/tags/struts-html</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>/tags/struts-logic</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>/tags/struts-tiles</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>/tags/struts-nested</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
              </taglib>
              <taglib>
                <taglib-uri>http://ajaxtags.org/tags/ajax</taglib-uri>
                <taglib-location>/WEB-INF/tld/ajaxtags.tld</taglib-location>
              </taglib>
               <taglib>
                <taglib-uri>/tags/struts-template</taglib-uri>
                <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
              </taglib>
          2、在WEB/INF下新建tld文件夾,將要用到的標簽庫都導入到文件夾內
          3、新建include/tagtld.jsp
          <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
          <%@ taglib uri="/tags/struts-html" prefix="html" %>
          <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
          4、在所要用到的jsp中導入<%@include file="include/tagtld.jsp"%>
          posted on 2007-12-18 11:00 方濤升 閱讀(2092) 評論(0)  編輯  收藏 所屬分類: struts

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


          網站導航:
           
          <2007年12月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 大渡口区| 水富县| 清流县| 雅江县| 玉山县| 西青区| 龙泉市| 阳新县| 上林县| 海丰县| 巴塘县| 夏河县| 海淀区| 兴海县| 南江县| 元谋县| 卫辉市| 田阳县| 比如县| 遂平县| 辽源市| 高台县| 耒阳市| 铜陵市| 禄丰县| 新昌县| 麻栗坡县| 嘉祥县| 绥化市| 洛南县| 临泉县| 罗定市| 门源| 株洲县| 留坝县| 深水埗区| 新兴县| 东方市| 静宁县| 治多县| 泾源县|