SSH架构下基于数据库的树状菜单的设计与实现.doc

SSH架构下基于数据库的树状菜单的设计与实现.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SSH架构下基于数据库的树状菜单的设计与实现

Computer Knowledge and Technology 电 脑 知 识 与 技 术 第 5 卷 第 25 期 (2009 年 9 月) E-mail: kfyj@ Tel:+86-551-5690963 5690964 ISSN 1009-3044 Computer Knowledge and Technology 电 脑 知 识 与 技 术 Vol.5,No.25, September 2009, pp.7308-7311,7317 SSH 架构下基于数据库的树状菜单的设计与实现 杨公义 (北京大学 现代教育技术中 心 新技术研究开发室 ,北 京 100871) 摘 要 :基 于 Spring+Struts+Hibernate 的技术架构设计和开发了基于数据库的树状菜单 。 解 决 了 纯 用 JavaScript 代码写的树状菜单难以 维护和效率低的问题 。 研究出了一种绕过 struts 控 制 器 ,从 jsp 页面直接不通过 *.do 的 方 式 访 问 spring 管 理 下 的 Struts 的 action 实 例 的 技 术 路 线 。 首先分析了系统的实体 。 然 后 ,设计和实现了系统的组件 。 进 而 ,设计和实现了视图层的各 jsp 页 面 ,在 jsp 页 面 中 对 树 状菜单的关键技术进行了介绍 。 这种方法设计的树状菜单正在实际应用在北京大学播客资源平台中 。 关 键 词 :树 状 菜 单 ;数 据 库 ;Spring;Struts;Hibernate 中 图 分 类 号 :TP393 文 献 标 识 码 :A 文 章 编 号: 1009-3044(2009)25-7308-04 A Tree Menus Design and Implement Based on Database in SSH Framework YANG Gong-yi (New Technology Research Development Office, Modern Education Technology Center, Peking University, Peking 100871, China) Abstract: The paper presents the design and implement about a tree menu basing on database in the framework of Spring +Struts+Hiber- nate. The paper solves the problem of the JavaScript tree menu?s low efficiency and hard to maintain. The paper presents a kind of tech- nology route to directly access struts? action instance managed by spring container not from *.do. Firstly, the paper analyses the entities in the system. Secondly, the paper designs and implements the module in the system. Thirdly, the paper designs and implements the jsp pages in the system. In these jsp pages the paper introduces the key technology about the tree menu. The tree menu in this paper is using in podcast resource platform in Peking University. Key words: tree menu; database; spring; struts; hibernate 树状菜单是一种很好的导航方式和内容 管 理 方 式 ,目前网上的大部分树状菜单是采用 JavaScript 方式纯静态实现的 ,这 种 方 式 的缺点是增加一条父结点或子结点就需要专业人员手动改写 JavaScript 代 码 ,这 种 方 法 繁 琐 、容易出错并且页面执行效率低 。 基 于 Spring+Struts+Hibernate 的技术架构是目前主流的 J2ee 的 web 开 发 架 构 。 这种架构的优点是统一用基于 hibernate 的 DAO 组件来获取和释放数据

文档评论(0)

yurixiang1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档