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 閱讀(2013) 評論(0)  編輯  收藏 所屬分類: web框架

          主站蜘蛛池模板: 高清| 三原县| 且末县| 兴城市| 富锦市| 海安县| 探索| 柳江县| 新沂市| 安徽省| 万盛区| 宽城| 寿宁县| 常山县| 汶上县| 青浦区| 沧源| 宁武县| 庆安县| 临城县| 塘沽区| 涞源县| 黄大仙区| 苏尼特右旗| 富宁县| 平阴县| 花莲市| 淮阳县| 吉水县| 阿尔山市| 阿图什市| 梧州市| 眉山市| 阿拉善左旗| 贵定县| 湾仔区| 大城县| 开化县| 肥东县| 沧州市| 上杭县|