58寸与60寸电视差多少:如何使用struts-menu-2.4.3的插件

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 00:04:13
1.先将struts-menu-2.4.3.zip插件的jar包解压找到struts-menu.war包,然后将struts-menu.war放到apache-tomcat-6.0.20\webapps目录下
2.双击apache-tomcat-6.0.20\bin\startup.bat启动服务器,struts-menu.war将自动解压生成struts-menu文件夹.
3在Struts应用中使用Struts-Menu插件需要经过一下几步.(在Eclipse下安装
        (1)将struts-menu所需的包文件struts-menu-2.4.3.jar导入到WEB-INF/lib下。
        (2)将struts-menu自带的images,script,styles及templates(这几个文件在struts-menu.war自解压的           struts-menu文件夹下可以找到)导入WebContent下。
        (3)在struts-config.xml中配置struts-menu插件:
            
                    
           

        (4)创建菜单的配置文件:menu-config.xml(在自解压的文件struts-menu\WEB-INF\找到struts-            config.xml进行修改)
struts-config.xml配置实例


 
                     type="net.sf.navigator.displayer.DropDownMenuDisplayer"/>
 

 
 
   
     
                              location="NewCase.jsp"/>
                              location="index.jsp"/>
                              location="index.jsp"/>
      
      
                               location="index.jsp"/>
                               location="index.jsp"/>
      
                       image="images/exit.png"   location="index.jsp"/>
   
 


       (5)在JSP页面中使用struts-menu的标签库显示各种样式的菜单。
首先引入标签库<%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>