<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 14,  comments - 37,  trackbacks - 0
    一、簡介
      Struts-Menu是一組從基于XML的配置文件中生成多種樣式的菜單的JSP Tags,并且可以結合API開發通過數據庫生成的動態菜單。Struts-Menu支持國際化和多種權限控制。

    二、運行環境
      Windows 2000 Professional
      JDK 1.4.2_03
      Eclipse 3.1
      Tomcat 5.0.28
      Tomcat Plugin 3.1Beta
      Struts 1.2.7
      Commons-Lang 2.1
      Commons-Collections 3.1
      Struts-Menu 2.3
      MySQL 4.1.10a-nt

    三、下載與安裝
      1:從
    http://java.sun.com下載J2SDK,當前1.4.x系列的最新版本為1.4.2_08
      2:從
    http://www.eclipse.org下載Eclipse,當前最新版本為3.1正式版
      3:從
    http://jakarta.apache.org/tomcat下載Tomcat,當前5.x系列的最新版本為5.0.28
      4:從
    http://www.sysdeo.com/eclipse/tomcatplugin下載Eclipse的Tomcat插件,對應Eclipse3.1x的最新版本為3.1Beta
      5:從
    http://struts.apache.org下載Struts,當前最新版本為1.2.7
      6:從
    http://jakarta.apache.org/commons/下載Commons-Lang,當前最新版本為2.1,下載Commons-Collections,當前最新版本為3.1
      7:從
    http://struts-menu.sourceforge.net下載Struts Menu,當前最新版本為2.3
      8:從
    http://www.mysql.com下載MySQL數據庫,4.x系列的最新版本是4.1.12a
      9:MySQL、JDK、Eclipse、Tomcat和TomcatPlugin的安裝及配置請參考相關資料

    四、運行示例程序
      1:安裝好Tomcat后,解壓縮struts-menu-2.3.zip,將struts-menu.war釋放到Tomcat安裝目錄下的webapps下,運行Tomcat
      2:在地址欄輸入
    http://localhost:8080/struts-menu

    五、安裝與配置
      1:在Eclipse中新建Tomcat項目,Context為/mymenu,Subdirectory為/web
      2:在項目目錄下面新建lib目錄和web目錄及WEB-INF,在web/WEB-INF目錄下新建web.xml,內容如下:

     

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd"
    >

    <web-app>
      
    <display-name>My Example Application -- Vinton Lee</display-name>
          
      
    <!-- ============= The Struts ActionServlet Configuration ============= -->
      
    <servlet>
        
    <servlet-name>action</servlet-name>
        
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        
    <init-param>
          
    <param-name>config</param-name>
          
    <param-value>/WEB-INF/struts-config.xml</param-value>
        
    </init-param>
        
    <load-on-startup>1</load-on-startup>
      
    </servlet>
      
    <!-- ================================================================== -->
        
      
    <!-- ============= The Struts Action Servlet Mapping ================== -->
      
    <servlet-mapping>
        
    <servlet-name>action</servlet-name>
        
    <url-pattern>*.do</url-pattern>
      
    </servlet-mapping>
      
    <!-- ================================================================== -->
      
      
    <!-- The Welcome File List -->
      
    <welcome-file-list>
        
    <welcome-file>index.jsp</welcome-file>
      
    </welcome-file-list>

      
    <!-- =============== The Struts Taglib Definition ===================== -->
      
    <taglib>
        
    <taglib-uri>struts-bean</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      
    </taglib>
      
    <taglib>
        
    <taglib-uri>struts-html</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      
    </taglib>
      
    <taglib>
        
    <taglib-uri>struts-logic</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      
    </taglib>
      
    <taglib>
        
    <taglib-uri>struts-nested</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
      
    </taglib>
      
    <taglib>
        
    <taglib-uri>struts-tiles</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
      
    </taglib>
      
    <!-- ================================================================== -->
      
      
    <!-- ============= The Struts-Menu Taglib Definition ================== -->
      
    <taglib>
        
    <taglib-uri>struts-menu</taglib-uri>
        
    <taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
      
    </taglib>
      
    <!-- ================================================================== -->
    </web-app>

     

      3:解壓縮struts-1.2.7.zip,將壓縮包中的lib目錄下所有的8個jar釋放到lib目錄中,將5個tld文件釋放到web\WEB-INF目錄中,在web\WEB-INF目錄中新建struts-config.xml,內容如下:

     

    <?xml version="1.0" encoding="ISO-8859-1" ?>

    <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
              "http://struts.apache.org/dtds/struts-config_1_2.dtd"
    >

    <struts-config>

        
    <!-- ========== Data Source Configuration =============================== -->
        
    <data-sources />

        
    <!-- ========== Form Bean Definitions =================================== -->
        
    <form-beans />

        
    <!-- ========== Global Exception Definitions ============================ -->
        
    <global-exceptions />

        
    <!-- ========== Global Forward Definitions ============================== -->
        
    <global-forwards />

        
    <!-- ========== Action Mapping Definitions ============================== -->
        
    <action-mappings />

        
    <!-- ========== Controller Configuration ================================ -->

        
    <!-- ========== Message Resources Definitions =========================== -->
        
    <message-resources parameter="application" />

        
    <!-- ========== Plug Ins Configuration ================================== -->
        
    <plug-in className="net.sf.navigator.menu.MenuPlugIn">
          
    <set-property property="menuConfig" value="/WEB-INF/menu-config.xml"/>
        
    </plug-in>

    </struts-config>

     

      4:解壓縮struts-menu-2.3.zip,將壓縮包中的jstl-1.0.6.jar、standard-1.0.6.jar、struts-menu-2.3.jar釋放到lib目錄中,將壓縮包中的struts-menu.tld、struts-menu-el.tld釋放到web\WEB-INF目錄中,解壓縮commons-lang-2.1.zip,將commons-lang-2.1.jar解壓縮到lib目錄中,注意,在Struts-Menu的文檔中沒有看到需要這個包,但是沒有這個包卻無法成功加載。在web\WEB-INF目錄中新建menu-config.xml,內容如下:

     

    <?xml version="1.0" encoding="UTF-8" ?>

    <MenuConfig>

      
    <Displayers>
        
    <Displayer   name="DropDown"
                     type
    ="net.sf.navigator.displayer.DropDownMenuDisplayer"/>
        
    <Displayer   name="Simple"
                     type
    ="net.sf.navigator.displayer.SimpleMenuDisplayer"/>
        
    <Displayer   name="CoolMenu"
                     type
    ="net.sf.navigator.displayer.CoolMenuDisplayer"/>
        
    <Displayer   name="CoolMenu4"
                     type
    ="net.sf.navigator.displayer.CoolMenuDisplayer4"/>
        
    <Displayer   name="MenuForm"
                     type
    ="net.sf.navigator.example.PermissionsFormMenuDisplayer"/>
        
    <Displayer   name="ListMenu"
                     type
    ="net.sf.navigator.displayer.ListMenuDisplayer"/>
        
    <Displayer   name="TabbedMenu"
                     type
    ="net.sf.navigator.displayer.TabbedMenuDisplayer"/>
        
    <Displayer   name="Velocity"
                     type
    ="net.sf.navigator.displayer.VelocityMenuDisplayer"/>
      
    </Displayers>

      
    <Menus>
        
    <Menu  name="DoorSite"  title="DoorSite"  description="Some famous doorsite" width="50">
           
    <Item   name="Yahoo"   title="Yahoo">
               
    <Item   name="YahooIndex"   title="Yahoo Index"   location="http://www.yahoo.com.cn"/>
               
    <Item   name="YahooMail"    title="Yahoo Mail"    location="http://cn.mail.yahoo.com"/>
           
    </Item>
           
    <Item    name="Sohu"  title="Sohu"   location="http://www.sohu.com"/>
           
    <Item    name="Sina"  title="Sina"   location="http://www.sina.com.cn"/>
        
    </Menu>
      
    </Menus>

    </MenuConfig>

     

      5:將第四步的示例程序中的struts-menu應用目錄下的images、scripts、styles三個目錄中的內容復制到web目錄下

      6:你的目錄結構應該類似如下:
       

    %PROJECT_HOME%\classes
        %PROJECT_HOME%\lib
        %PROJECT_HOME%\lib\antlr.jar
        %PROJECT_HOME%\lib\commons-beanutils.jar
        %PROJECT_HOME%\lib\commons-digester.jar
        %PROJECT_HOME%\lib\commons-fileupload.jar
        %PROJECT_HOME%\lib\commons-lang-2.1.jar
        %PROJECT_HOME%\lib\commons-logging.jar
        %PROJECT_HOME%\lib\commons-validator.jar
        %PROJECT_HOME%\lib\jakarta-oro.jar
        %PROJECT_HOME%\lib\jstl-1.0.6.jar
        %PROJECT_HOME%\lib\standard-1.0.6.jar
        %PROJECT_HOME%\lib\struts.jar
        %PROJECT_HOME%\lib\struts-menu-2.3.jar
        %PROJECT_HOME%\src
        %PROJECT_HOME%\src\log4j.properties
        %PROJECT_HOME%\src\application.properties
        %PROJECT_HOME%\src\application_zh_CN.properties
        %PROJECT_HOME%\web
        %PROJECT_HOME%\web\images\
        %PROJECT_HOME%\web\scripts\
        %PROJECT_HOME%\web\styles\
        %PROJECT_HOME%\web\WEB-INF
        %PROJECT_HOME%\web\WEB-INF\menu-config.xml
        %PROJECT_HOME%\web\WEB-INF\struts-bean.tld
        %PROJECT_HOME%\web\WEB-INF\struts-config.xml
        %PROJECT_HOME%\web\WEB-INF\struts-html.tld
        %PROJECT_HOME%\web\WEB-INF\struts-logic.tld
        %PROJECT_HOME%\web\WEB-INF\struts-menu.tld
        %PROJECT_HOME%\web\WEB-INF\struts-menu-el.tld
        %PROJECT_HOME%\web\WEB-INF\struts-nested.tld
        %PROJECT_HOME%\web\WEB-INF\struts-tiles.tld
        %PROJECT_HOME%\web\WEB-INF\web.xml

     

    六、實戰Struts-Menu
      1:使用配置文件實現靜態菜單
      新建JSP文件web/static-menu.jsp,內容如下:

    <%@ page contentType="text/html; charset=GBK" %>
    <%@ taglib uri="struts-menu" prefix="menu" %>

    <menu:useMenuDisplayer name="ListMenu" 
        bundle
    ="org.apache.struts.action.MESSAGE">
        
    <menu:displayMenu name="DoorSite"/>
    </menu:useMenuDisplayer>

      運行Tomcat,在IE地址欄輸入http://localhost:8080/mymenu/static-menu.jsp查看

      2:實現中文化
      > 在src\application_zh_CN.properties中增加下面的內容,Unicode可以通過JDK自帶的native2ascii工具得到:

    #門戶網站
    menu.DoorSite
    =\u95e8\u6237\u7f51\u7ad9
    #雅虎
    menu.Yahoo
    =\u96c5\u864e
    #雅虎首頁
    menu.YahooIndex
    =\u96c5\u864e\u9996\u9875
    #雅虎郵件
    menu.YahooMail
    =\u96c5\u864e\u90ae\u4ef6
    #搜狐
    menu.Sohu
    =\u641c\u72d0
    #新浪
    menu.Sina
    =\u65b0\u6d6a


      > 在src\application.properties中增加下面的內容:

    #門戶網站
    menu.DoorSite
    =DoorSite
    #雅虎
    menu.Yahoo
    =Yahoo
    #雅虎首頁
    menu.YahooIndex
    =Yahoo Index
    #雅虎郵件
    menu.YahooMail
    =Yahoo Mail
    #搜狐
    menu.Sohu
    =Sohu
    #新浪
    menu.Sina
    =Sina


      > 修改menu-config.xml文件<Menus></Menus>部分:

      <Menus>
        
    <Menu  name="DoorSite"  title="menu.DoorSite"  description="Some famous doorsite" width="50">
           
    <Item   name="Yahoo"   title="menu.Yahoo">
               
    <Item   name="YahooIndex"   title="menu.YahooIndex"   location="http://www.yahoo.com.cn"/>
               
    <Item   name="YahooMail"    title="menu.YahooMail"    location="http://cn.mail.yahoo.com"/>
           
    </Item>
           
    <Item    name="Sohu"  title="menu.Sohu"   location="http://www.sohu.com"/>
           
    <Item    name="Sina"  title="menu.Sina"   location="http://www.sina.com.cn"/>
        
    </Menu>
      
    </Menus>


      重起Tomcat,在IE地址欄輸入
    http://localhost:8080/mymenu/static-menu.jsp查看

      3:結合數據庫實現動態菜單
      > 新建數據myexamples:

    CREATE DATABASE myexamples


      > 新建數據庫表menu_item:

    CREATE TABLE menu_item (
       id 
    BIGINT not null,
       parent_name 
    VARCHAR(30),
       name 
    VARCHAR(30),
       title 
    VARCHAR(30),
       titleCN 
    VARCHAR(30),
       description 
    VARCHAR(50),
       location 
    VARCHAR(255),
       target 
    VARCHAR(10),
       onclick 
    VARCHAR(100),
       onmouseover 
    VARCHAR(100),
       onmouseout 
    VARCHAR(100),
       
    image VARCHAR(50),
       altImage 
    VARCHAR(30),
       tooltip 
    VARCHAR(100),
       roles 
    VARCHAR(100),
       page 
    VARCHAR(255),
       width 
    VARCHAR(5),
       height 
    VARCHAR(5),
       forward 
    VARCHAR(50),
       action 
    VARCHAR(50),
       
    primary key (id)
    )


      > 插入測試數據:

    INSERT INTO menu_item
        (id, parent_name, name, title, titleCN, location)
    VALUES
        (
    1,null,'DatabaseMenu','Database Menu','數據庫動態菜單',null),
        (
    2,'DatabaseMenu','Yahoo','Yahoo Mail','雅虎郵件','http://mail.yahoo.com'),
        (
    3,'DatabaseMenu','JavaBlogs','JavaBlogs','Java博客','http://javablogs.com'),
        (
    4,null,'StandaloneMenu','Standalone Menu','獨立的菜單','http://www.sohu.com')


      > 將數據庫驅動程序放到lib目錄中,并加入到Build Path,如MySQL的數據庫驅動mysql-connector-java-3.1.8-bin.jar,解壓縮commons-collections-3.1.zip,將commons-collections-3.1.jar釋放到lib目錄,并加入Build Path
      > 新建一個Struts的Action,代碼如下:

      1package cn.appex.menu;
      2
      3import java.io.UnsupportedEncodingException;
      4import java.sql.Connection;
      5import java.sql.DriverManager;
      6import java.sql.PreparedStatement;
      7import java.sql.ResultSet;
      8import java.sql.SQLException;
      9import java.util.ArrayList;
     10import java.util.HashMap;
     11import java.util.ListResourceBundle;
     12import java.util.Map;
     13
     14import com.mysql.jdbc.Driver;
     15
     16import javax.servlet.http.HttpServletRequest;
     17import javax.servlet.http.HttpServletResponse;
     18import javax.servlet.http.HttpSession;
     19
     20import net.sf.navigator.menu.MenuComponent;
     21import net.sf.navigator.menu.MenuRepository;
     22import net.sf.navigator.menu.PermissionsAdapter;
     23
     24import org.apache.struts.action.Action;
     25import org.apache.struts.action.ActionForm;
     26import org.apache.struts.action.ActionForward;
     27import org.apache.struts.action.ActionMapping;
     28
     29public class MenuAction extends Action {
     30    public ActionForward execute(ActionMapping mapping, ActionForm form,
     31            HttpServletRequest request, HttpServletResponse response)
     32            throws Exception {
     33        buildMenuRepository(request);
     34        buildMenuResourceBundle(request);
     35        buildMenuPermissions(request);
     36        return (mapping.findForward("success"));
     37    }

     38
     39    /**
     40     * 創建菜單數據結構
     41     * 
     42     * @param request
     43     */

     44    private void buildMenuRepository(HttpServletRequest request) {
     45        MenuRepository repository = new MenuRepository();
     46        // Get the repository from the application scope - and copy the
     47        // DisplayerMappings from it.
     48        MenuRepository defaultRepository = (MenuRepository) request
     49                .getSession().getServletContext().getAttribute(
     50                        MenuRepository.MENU_REPOSITORY_KEY);
     51        repository.setDisplayers(defaultRepository.getDisplayers());
     52
     53        Map[] menus = getMenuComponents();
     54        for (int i=0; i < menus.length; i++{
     55            MenuComponent mc = new MenuComponent();
     56            Map row = menus[i];
     57            String name = (String) row.get("name");
     58            mc.setName(name);
     59            String parent = (String) row.get("parent_name");
     60            System.out.println(name + ", parent is: " + parent);
     61            if (parent != null{
     62                MenuComponent parentMenu = repository.getMenu(parent);
     63                if (parentMenu == null{
     64                    System.out.println("parentMenu '" + parent + "' doesn't exist!");
     65                    // create a temporary parentMenu
     66                    parentMenu = new MenuComponent();
     67                    parentMenu.setName(parent);
     68                    repository.addMenu(parentMenu);
     69                }

     70
     71                mc.setParent(parentMenu);
     72            }

     73            String title = (String) row.get("title");
     74            mc.setTitle(title);
     75            String location = (String) row.get("location");
     76            mc.setLocation(location);
     77            String description = (String) row.get("description");
     78            mc.setDescription(description);
     79            repository.addMenu(mc);
     80        }

     81        
     82        request.setAttribute("examplesRepository", repository);
     83    }

     84
     85    /**
     86     * 從數據庫中讀取菜單配置信息
     87     * 
     88     * @return
     89     */

     90    private Map[] getMenuComponents() {
     91        ArrayList list = new ArrayList();
     92        Connection conn = null;
     93        PreparedStatement pstmt = null;
     94        ResultSet rest = null;
     95        String sql = "select name,parent_name,title,location,description from menu_item order by id";
     96        try {
     97            Class.forName("com.mysql.jdbc.Driver").newInstance();
     98            conn = DriverManager.getConnection("jdbc:mysql://localhost/myexamples?user=root&password=mywangya&useUnicode=true&characterEncoding=UTF-8");
     99            pstmt = conn.prepareStatement(sql);
    100            rest = pstmt.executeQuery();
    101            while (rest.next()) {
    102                int i = 1;
    103                HashMap map = new HashMap();
    104                map.put("name", rest.getString(i++));
    105                map.put("parent_name", rest.getString(i++));
    106                map.put("title", rest.getString(i++));
    107                map.put("location", rest.getString(i++));
    108                map.put("description", rest.getString(i++));
    109                list.add(map);
    110            }

    111        }
     catch (SQLException ex) {
    112            ex.printStackTrace();
    113        }
     catch (InstantiationException e) {
    114            e.printStackTrace();
    115        }
     catch (IllegalAccessException e) {
    116            e.printStackTrace();
    117        }
     catch (ClassNotFoundException e) {
    118            e.printStackTrace();
    119        }
     finally {
    120            try {
    121                if (null!=rest) rest.close();
    122                if (null!=pstmt) pstmt.close();
    123                if (null!=conn) conn.close();
    124            }
     catch (SQLException e) {
    125                e.printStackTrace();
    126            }

    127        }

    128        
    129        return (Map[]) list.toArray(new HashMap[0]);
    130    }

    131    
    132    /**
    133     * 構造菜單權限
    134     * 
    135     * @param request
    136     */

    137    private void buildMenuPermissions(HttpServletRequest request) {
    138        PermissionsAdapter permession = new PermissionsAdapter() {
    139            public boolean isAllowed(MenuComponent menu) {
    140                // 名稱等于StandaloneMenu的菜單不顯示
    141                return !"StandaloneMenu".equalsIgnoreCase(menu.getName());
    142            }

    143        }
    ;
    144        request.setAttribute("examplesPermession", permession);
    145    }

    146
    147    /**
    148     * 構造菜單顯示標題
    149     * 
    150     * @param request
    151     */

    152    private void buildMenuResourceBundle(HttpServletRequest request) {
    153        MenuResourceBundle resourceBundle = new MenuResourceBundle();
    154        request.setAttribute("examplesBundle", resourceBundle);
    155    }

    156    
    157    /**
    158     * MenuResourceBundle樹狀菜單國際語言顯示
    159     * 
    160     * @author wenbin.zhang
    161     *  
    162     */

    163    class MenuResourceBundle extends ListResourceBundle {
    164        private ArrayList list = new ArrayList();
    165
    166        public MenuResourceBundle() {
    167            Connection conn = null;
    168            PreparedStatement pstmt = null;
    169            ResultSet rest = null;
    170            String sql = "select title,titleCN from menu_item order by id";
    171            try {
    172                Class.forName("com.mysql.jdbc.Driver").newInstance();
    173                conn = DriverManager.getConnection("jdbc:mysql://localhost/myexamples?user=root&password=mywangya&useUnicode=true&characterEncoding=UTF-8");
    174                pstmt = conn.prepareStatement(sql);
    175                rest = pstmt.executeQuery();
    176                while (rest.next()) {
    177                    int i = 1;
    178                    String[] message = new String[2];
    179                    message[0= rest.getString(i++);
    180                    try {
    181                        message[1= new String(rest.getString(i++).getBytes("latin1"), "gbk");
    182                    }
     catch (UnsupportedEncodingException e) {
    183                        e.printStackTrace();
    184                    }

    185                    if (message[0!= null && message[1!= null{
    186                        list.add(message);
    187                    }

    188                }

    189            }
     catch (SQLException ex) {
    190                ex.printStackTrace();
    191            }
     catch (InstantiationException e) {
    192                e.printStackTrace();
    193            }
     catch (IllegalAccessException e) {
    194                e.printStackTrace();
    195            }
     catch (ClassNotFoundException e) {
    196                e.printStackTrace();
    197            }
     finally {
    198                try {
    199                    if (null!=rest) rest.close();
    200                    if (null!=pstmt) pstmt.close();
    201                    if (null!=conn) conn.close();
    202                }
     catch (SQLException e) {
    203                    e.printStackTrace();
    204                }

    205            }

    206
    207        }

    208
    209        public Object[][] getContents() {
    210            return (String[][]) list.toArray(new String[0][0]);
    211        }

    212    }

    213}

    214
    215  
    216


     >將struts-config.xml文件的<action-mappings />部分修改為:

    <action-mappings>
      
    <action path="/menuAction" type="cn.appex.menu.MenuAction" >
        
    <forward name="success" path="/struts-menu/dynamic-menu.jsp" />
      
    </action>
    </action-mappings>


      > 新建JSP文件web/dynamic-menu.jsp,內容如下:

    <%@ page contentType="text/html; charset=GBK" %>
    <%@ taglib uri="struts-menu" prefix="menu" %>

     

    沒有使用Bundle和權限控制:

    <menu:useMenuDisplayer name="ListMenu" repository="examplesRepository">
        
    <menu:displayMenu name="DatabaseMenu"/>
        
    <menu:displayMenu name="StandaloneMenu"/>
    </menu:useMenuDisplayer>

     

    使用Bundle, 沒有使用權限控制:

    <menu:useMenuDisplayer name="ListMenu" bundle="examplesBundle" repository="examplesRepository">
        
    <menu:displayMenu name="DatabaseMenu"/>
        
    <menu:displayMenu name="StandaloneMenu"/>
    </menu:useMenuDisplayer>

     

    使用Bundle和權限控制:

    <menu:useMenuDisplayer name="ListMenu" permissions="examplesPermession"  bundle="examplesBundle" repository="examplesRepository">
        
    <menu:displayMenu name="DatabaseMenu"/>
        
    <menu:displayMenu name="StandaloneMenu"/>
    </menu:useMenuDisplayer>


      重起Tomcat,在地址欄輸入
    http://localhost:8080/mymenu/menuAction.do

    七、關于Struts-Menu配置文件和API的使用方法,請參考附錄中的官方網站


    附:
    Struts-Menu官方網站:
    http://struts-menu.sourceforge.net
    數據庫驅動的動態菜單:http://demo.raibledesigns.com/struts-menu/dynamicMenu.jsp

    posted on 2007-07-11 10:19 冰封的愛 閱讀(251) 評論(0)  編輯  收藏 所屬分類: J2EE
    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章分類

    文章檔案

    相冊

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产成人精品亚洲一区| 国产午夜无码精品免费看| 亚洲成a人片在线播放| 中文字幕av免费专区| 亚洲国产成AV人天堂无码| 青青青国产色视频在线观看国产亚洲欧洲国产综合 | 亚洲AV无码国产剧情| 中文字幕专区在线亚洲| 我们的2018在线观看免费高清| 国产成人不卡亚洲精品91| 亚洲人成电影福利在线播放| 国产精品免费看久久久无码| 暖暖免费在线中文日本| 国产成人不卡亚洲精品91| 亚洲精品国产福利在线观看| 亚洲国产精品人人做人人爽| 国产又大又粗又长免费视频 | 大学生a级毛片免费观看| 中国极品美軳免费观看| 亚洲日韩一中文字暮| 亚洲av福利无码无一区二区| 又黄又爽无遮挡免费视频| 免费人成在线观看69式小视频| 亚洲黄片手机免费观看| 亚洲欧美不卡高清在线| 亚洲视频在线观看视频| 亚洲人精品午夜射精日韩| 免费一级毛片正在播放| 69成人免费视频无码专区| 鲁大师在线影院免费观看 | 日韩精品无码免费视频| 中文字幕精品三区无码亚洲| 亚洲韩国—中文字幕| 国产亚洲视频在线播放| 亚洲第一区精品观看| 日本媚薬痉挛在线观看免费| 99久久国产热无码精品免费| 午夜不卡久久精品无码免费 | 99免费视频观看| 午夜免费福利视频| 最新国产乱人伦偷精品免费网站|