DANCE WITH JAVA

          開發出高質量的系統

          常用鏈接

          統計

          積分與排名

          好友之家

          最新評論

          struts-menu(tablemenu樣式)

          上篇文章講了如何使用struts-menu這篇在上篇的基礎上增加如果美化menu作出漂亮的menu來
          1,tablemenu
          新建一個jsp文件tablemenu.jsp,內容如下:

          <%@ include file="/taglibs.jsp"%>

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
              
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
          <head>
              
          <title>Struts Menu Example Application</title>

              
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

              
          <script type="text/javascript" src="scripts/nicetabs.js"></script>
              
              
          <link rel="stylesheet" type="text/css" media="screen"
                  href
          ="styles/global.css" />
              
          <link rel="stylesheet" type="text/css" media="screen"
                href
          ="styles/nicetabs.css" />

          </head>
          <div id="header">
          <menu:useMenuDisplayer name="Velocity" config="/templates/indextabs.html"
              bundle
          ="org.apache.struts.action.MESSAGE">
              
          <ul id="menuList">
              
          <menu:displayMenu name="projectMenu"/>
              
          </ul>
          </menu:useMenuDisplayer>
          </div>
          <%@ include file="/common/footer.jsp"%>
          </html>

          在menu-config.xml的menus之間加入如下內容
           <Menu name="projectMenu" title="Project Menu">
                  
          <Item title="Home" toolTip="Return to List of Menus" page="/index.jsp"/>
                  
          <Item title="Documentation" toolTip="View Project Documentation"
                      location
          ="http://struts-menu.sf.net"/>
                  
          <Item title="FAQs" toolTip="View Frequenty Asked Questions"
                      location
          ="http://struts-menu.sf.net/faq.html"/>
                  
          <Item title="Mailing Lists" toolTip="Subscribe to Mailing Lists"
                      location
          ="http://sourceforge.net/mail/?group_id=48726"/>
                  
          <Item title="Mailing List Archives"
                      toolTip
          ="Search the Mailing List Archives"
                      location
          ="http://www.mail-archive.com/index.php?hunt=struts-menu"/>
              
          </Menu>
          部署運行工程,從主頁點擊tablemenu進入tablemenu的頁面如圖:

          posted on 2007-05-27 17:09 dreamstone 閱讀(2012) 評論(0)  編輯  收藏 所屬分類: web框架

          主站蜘蛛池模板: 郓城县| 寻甸| 渭南市| 平阳县| 克东县| 崇信县| 桦南县| 石阡县| 宁蒗| 丹东市| 长乐市| 广南县| 桦南县| 寿光市| 大丰市| 龙岩市| 长乐市| 方正县| 兴海县| 华阴市| 象州县| 宁城县| 鹿泉市| 澄城县| 泉州市| 陇南市| 连云港市| 吉林省| 凤翔县| 虎林市| 保康县| 英山县| 前郭尔| 全南县| 都江堰市| 墨竹工卡县| 双柏县| 礼泉县| 伊金霍洛旗| 扶风县| 甘孜|