Location:
Search - java mysql mvc
Search list
Description: ·VI·
目 录
前言
第1章 高性能聊天系统...................................................................................................1
1.1 系统需求...........................................................................................................1
1.2 架构设计...........................................................................................................2
1.2.1 Java事件模型.....................................................................................................2
1.2.2 架构设计图.......................................................................................................5
1.2.3 协议设计.........................................................................................................5
1.2.4 多线程...........................................................................................................6
1.2.5 线程池...........................................................................................................9
1.2.6 非堵塞I/O........................................................................................................11
1.3 Socket核心设计和实现...............................................................................................13
1.3.1 TCP和Reactor模式.................................................................................................14
1.3.2 UDP实现..........................................................................................................19
1.3.3 客户端实现.......................................................................................................22
1.4 Socket接口设计和实现..............................................................................................28
1.4.1 队列和对象类型..................................................................................................28
1.4.2 访问者模式定义..................................................................................................32
1.4.3 访问者模式实现..................................................................................................36
1.4.4 协议封装........................................................................................................39
1.4.5 重整Refactoring.................................................................................................41
1.5 应用接口设计和实现................................................................................................45
1.5.1 Connection API..................................................................................................46
1.5.2 ConnectionFactory API...........................................................................................49
1.5.3 TcpConnection API...............................................................................................53
1.5.4 UdpConnection API...............................................................................................54
1.6 应用层设计和实现..................................................................................................56
1.6.1 客户端聊天测试..................................................................................................56
1.6.2 服务器聊天测试..................................................................................................58
1.7 性能测试..........................................................................................................59
1.8 小结..............................................................................................................61
第2章 简单的用户注册系统..............................................................................................62
2.1 需求分析............................................................................................................62
2.2 系统设计............................................................................................................62
2.2.1 JSP/Servlet与J2EE.................................................................................................63
2.2.2 结构设计图........................................................................................................64
2.2.3 JSP/JavaBeans技术要点.............................................................................................65
2.2.4 JDBC和连接池......................................................................................................68
2.2.5 数据库设计........................................................................................................70
2.3 类的详细设计和实现..................................................................................................71
2.3.1 Facade模式........................................................................................................71
2.3.2 JDBC通用操作类....................................................................................................73
2.3.3 E-mail发送通用类..................................................................................................78
2.3.4 用户资料管理......................................................................................................79
2.3.5 密码数据操作类....................................................................................................83
2.3.6 登陆验证功能......................................................................................................85
2.4 界面编程实现........................................................................................................87
2.4.1 登陆验证页面......................................................................................................87
2.4.2 注册页面..........................................................................................................88
2.5 调试、发布和运行....................................................................................................90
2.5.1 单元测试..........................................................................................................91
2.5.2 快速配置开发环境..................................................................................................92
2.5.3 Tomcat配置和调试..................................................................................................93
2.5.4 Tomcat连接池使用..................................................................................................95
2.6 Hibernate使用.......................................................................................................99
2.7 小结................................................................................................................103
第3章 Jive论坛系统.....................................................................................................107
3.1 Jive功能需求.......................................................................................................107
3.2 Jive与设计模式.....................................................................................................108
3.2.1 设计模式.........................................................................................................109
3.2.2 ForumFactory与工厂模式...........................................................................................109
3.2.3 统一入口与单态模式...............................................................................................113
3.2.4 访问控制与代理模式...............................................................................................114
3.2.5 批量分页查询与迭代模式...........................................................................................115
3.2.6 过滤器与装饰模式.................................................................................................120
3.2.7 主题监测与观察者模式.............................................................................................124
3.3 Jive安全管理机制...................................................................................................128
3.3.1 安全验证机制.....................................................................................................129
3.3.2 用户资料管理.....................................................................................................132
3.4 Jive的缓存机制.....................................................................................................133
3.4.1 缓存原理和实现...................................................................................................133
3.4.2 缓存使用.........................................................................................................136
3.4.3 小结.............................................................................................................139
3.5 Jive的其他组件技术.................................................................................................140
3.5.1 Jive的树形结构...................................................................................................140
3.5.2 XML和JDOM........................................................................................................143
3.5.3 全文检索和Lucene.................................................................................................147
3.5.4 Jive的中文问题...................................................................................................152
3.6 Jive图形处理.......................................................................................................154
3.6.1 图片上传处理.....................................................................................................154
3.6.2 服务器端图形处理.................................................................................................157
3.7 Jive安装调试运行...................................................................................................159
3.8 小结...............................................................................................................160
第4章 网站内容管理系统.................................................................................................161
4.1 需求分析...........................................................................................................161
4.2 架构设计...........................................................................................................162
4.2.1 系统架构图.......................................................................................................163
4.2.2 MVC模式和Struts..................................................................................................164
4.2.3 DBO模式和Castor..................................................................................................167
4.2.4 Cache设计........................................................................................................172
4.3 详细设计和实现.....................................................................................................173
4.3.1 基本对象设计.....................................................................................................173
4.3.2 数据模型的实现...................................................................................................174
4.3.3 抽象工厂(Abstract Factory)模式...................................................................................175
4.3.4 生成器(Builder)模式..............................................................................................180
4.4 表现层的实现.......................................................................................................187
4.4.1 Strut相关设置....................................................................................................187
4.4.2 创建PageForm.....................................................................................................189
4.4.3 创建PageAction...................................................................................................192
4.4.4 创建page.jsp页面.................................................................................................194
4.4.5 自定义标签库.....................................................................................................196
4.4.6 创建SavePageAction...............................................................................................199
4.4.7 Tile模板.........................................................................................................201
4.4.8 创建cmsMenu.jsp..................................................................................................203
4.4.9 创建index.jsp....................................................................................................203
4.4.10 小技巧..........................................................................................................204
4.5 项目重整Refactoring................................................................................................205
4.6 调试、发布和运行...................................................................................................206
4.6.1 配置和运行.......................................................................................................206
4.6.2 Log调试信息的配置................................................................................................206
4.7 小结...............................................................................................................207
第5章 订阅信息系统.....................................................................................................209
5.1 需求分析...........................................................................................................209
5.2 架构设计...........................................................................................................209
5.2.1 Cache和Pool......................................................................................................210
5.2.2 EJB框架体系......................................................................................................211
5.2.3 架构图...........................................................................................................213
5.2.4 接口框架设计.....................................................................................................213
5.3 EJB详细设计和实现..................................................................................................214
5.3.1 业务对象建模.....................................................................................................215
5.3.2 开发环境配置.....................................................................................................216
5.3.3 CMP图形开发......................................................................................................217
5.3.4 实体Bean.........................................................................................................221
5.3.5 Facade Session Bean..............................................................................................229
5.3.6 Transfer Object模式..............................................................................................232
5.4 Web与EJB接口框架...................................................................................................233
5.4.1 框架的设计.......................................................................................................233
5.4.2 框架的实现.......................................................................................................235
5.4.3 框架的使用.......................................................................................................243
5.5 表现层的设计和实现.................................................................................................247
5.5.1 创建ActionForm...................................................................................................247
5.5.2 创建Action 类....................................................................................................248
5.5.3 创建JSP页面......................................................................................................248
5.6 调试配置和运行.....................................................................................................249
5.6.1 JBoss和MySQL的配置...............................................................................................250
5.6.2 JNDI配置.........................................................................................................251
5.6.3 部署和发布.......................................................................................................253
5.6.4 调试和测试.......................................................................................................254
5.7 小结...............................................................................................................254
第6章 用户安全管理系统.................................................................................................256
6.1 需求分析...........................................................................................................256
6.2 架构设计...........................................................................................................256
6.2.1 角色.............................................................................................................257
6.2.2 J2EE的JAAS.......................................................................................................257
6.2.3 单点登录.........................................................................................................259
6.2.4 邮件发送组件.....................................................................................................261
6.3 详细设计和实现.....................................................................................................261
6.3.1 业务对象建模.....................................................................................................261
6.3.2 数据库设计.......................................................................................................263
6.3.3 实体bean实现.....................................................................................................263
6.3.4 Session Bean实现.................................................................................................266
6.3.5 EJB容器安全配置..................................................................................................273
6.4 JMS 邮件发送组件...................................................................................................275
6.4.1 消息发送器.......................................................................................................276
6.4.2 MDB..............................................................................................................279
6.5 Web层的实现........................................................................................................282
6.5.1 用户资料管理.....................................................................................................282
6.5.2 Web容器安全配置..................................................................................................287
6.6 调试配置和运行.....................................................................................................289
6.6.1 JAAS配置.........................................................................................................290
6.6.2 邮件服务的配置...................................................................................................291
6.6.3 部署和发布.......................................................................................................292
6.7 小结...............................................................................................................292
第7章 EJB方法调用框架..................................................................................................294
7.1 框架概况...........................................................................................................294
7.1.1 远程调用技术背景.................................................................................................294
7.1.2 框架结构.........................................................................................................295
7.2 框架设计..........................................................................................................296
7.2.1 代理(Proxy)模式...............................................................................................296
7.2.2 动态代理........................................................................................................298
7.2.3 反射(Reflection)和方法调用....................................................................................300
7.2.4 HTTP协议和对象序列化............................................................................................302
7.2.5 框架设计图......................................................................................................304
7.2.6 HTTPSession和缓存机制...........................................................................................305
7.2.7 基于HTTP的安全机制..............................................................................................306
7.3 类的详细设计和实现................................................................................................309
7.3.1 基本业务对象....................................................................................................310
7.3.2 动态代理工厂....................................................................................................312
7.3.3 肥客户端/服务器架构下实现.......................................................................................315
7.3.4 Web层代理Servlet Proxy..........................................................................................322
7.3.5 浏览器/服务器架构下实现.........................................................................................324
7.3.6 核心代理Business Proxy实现......................................................................................327
7.4 框架的使用和调试..................................................................................................333
7.4.1 配置............................................................................................................333
7.4.2 浏览器/服务器架构下的应用.......................................................................................335
7.4.3 肥客户端/服务器架构下的应用.....................................................................................336
7.5 小结..............................................................................................................337
第8章 网上商店系统...................................................................................................338
8.1 系统需求和设计...................................................................................................338
8.1.1 基本业务对象...................................................................................................339
8.1.2 数据表设计.....................................................................................................340
8.2 数据操作通用框架.................................................................................................344
8.2.1 框架的提炼和设计...............................................................................................347
8.2.2 增、删、改、查框架实现.........................................................................................352
8.3 商品类别管理功能的实现...........................................................................................356
8.3.1 创建Session Bean................................................................................................357
8.3.2 EJB配置.........................................................................................................358
8.3.3 创建Category相关类实现..........................................................................................360
8.3.4 Web配置.........................................................................................................361
8.3.5 创建Category.jsp................................................................................................362
8.4 商品管理功能的实现................................................................................................364
8.4.1 创建ProductManager..............................................................................................364
8.4.2 EJB配置.........................................................................................................366
8.4.3 创建Product相关类实现...........................................................................................368
8.4.4 Web配置.........................................................................................................369
8.4.5 创建product.jsp.................................................................................................370
8.4.6 商品图片上传功能................................................................................................374
8.5 商品批量查询和多页显示............................................................................................376
8.5.1 DAO模式.........................................................................................................377
8.5.2 Strut框架下设计和实现...........................................................................................385
8.5.3 页导航条实现....................................................................................................388
8.6 购物车功能的实现..................................................................................................393
8.6.1 有状态Session Bean..............................................................................................393
8.6.2 Web功能实现.....................................................................................................396
8.7 小结..............................................................................................................399
Platform: |
Size: 31514707 |
Author: fengbozs@163.com |
Hits:
Description: 主要功能: ·新闻采用在线编辑器,可以象使用word一样编辑新闻 ·可web上传图片,新闻内其它网站图片自动下载 ·无限级目录分类 ·可设头条新闻和图片新闻 ·新闻点评功能,可自由发表评论 ·权限管理可以任意设置角色 ·采用MVC模式显示与逻辑分离,方便修改页面显示效果 ·支持国际化多语言,只需要增加响应语言包 ·支持多数据库,目前测试过的数据库(Oracle,SqlServer,Mysql) ·支持全文索引,检索速度更快更准确 ·-main functions : using online news editor, can be like using the same word would be news editor web upload pictures and news photos within other Web sites automatically download unlimited directory level classification based news headlines and pictures Press Comments function, the right to free comment management can be arbitrary limit set role models suggest using MVC and logic separation to facilitate change pages display support of the international multi-language, only language response to the need to increase support for multi-database package, tested database (Oracle, Slammer, Mysql) supports full-text indexing , retrieval faster more accurate
Platform: |
Size: 11132928 |
Author: 宋永新 |
Hits:
Description: 本系统开发环境是:Eclipse 2.1 + Tomcat5.5 + jdk1.5.0 + Mysql 4.0.16 在win2k pro 和win2k Ad 上运行通过. Velocity News 采用Java模板技术Velocity + Servlet + JavaBean搭建.基于MVC构架. 以Velocity技术实现表现层 以Servlet和web.xml为控制层 以JavaBean做为MODEL层.-the system development environment are : Eclipse 2.1 Tomcat5.5 jdk1.5.0 Mysql 4.0.16 in win2k pro and win2k Ad run through. Velocity News Java Servlet Velocity template technology JavaBean structures. Based on the MVC architecture. Velocity technology to to achieve performance layer Servlet and web.xml for the control layer to layer JavaBean as MODEL.
Platform: |
Size: 2445312 |
Author: 陈云 |
Hits:
Description: 中间商系统
1 数据库 Access2000
2 版本 jsp2.0+servlet2.4+jstl1.1+Tomcat5.5.9+JDK1.5
3 IDE工具 JBuilder2006
4 需要改的地方 com.wang.bean DataBean 的构造函数的数据库URL需要改成自己的环境
这个程序虽然没有什么技术难点 但是完全遵循MVC框架来开发的 希望可以让大家得到些知识
BY GTON
2006大年初一
北京的公司注意 本人需要一份高薪工作
简历
我叫王宁 20岁
由于文字有限 就说一下我掌握的技术把
语言:
java(jsp,servlet,javaBean,struts,hibernate...)
javascript+DOM应用
xml语言 javascript和xml的应用
asp.net(C#)
html css
delphi7
数据库:
MSSQLserver
MySQL
ORACLE
可以看懂UML建模图
有多个项目经验(不细说了)-brokering a database system Access2000 two versions jsp2.0 servlet2 .4 jstl1.1 Tomcat5.5.9 JDK1.5 three JBuilder IDE tools 2006 4 need to change the local com.wang.bean DataBean Constructors data URL for the need to change their procedures for the environment despite a lack of any technical difficulties but fully comply with the framework to open MVC fat hope we can gain more knowledge BY GTON 2,006 companies belonging to Beijing, I need a biographical notes were better paid job, I called 20-year-old Wang Ning Because writing what I say, a limited grasp of technology to language : java (jsp, servlet, javaBean, struts, Apache ...) javascript DOM application xml language javascr ipt and xml of Asp. net (C#) html css delphi7 database : ORACLE MSSQLserver MySQL can understand UML plans a numb
Platform: |
Size: 456704 |
Author: 唐正 |
Hits:
Description: 该系统是基于J2EE框架的一个B/S的网上书店电子商务系统。采用B/S模式为企业提供强大的电子商务平台。实现对企业供产销系统的全面信息监控,同时提高整个网上书店的信息系统的安全性。通过WEB服务器使客户通过浏览器与服务器进行信息沟通。通过JDBC技术实现与数据库的动态挂接,提供的信息的鲜度,采用MVC模式提供系统的灵活性和可移植性,实现对网上书店的信息系统的全局信息监控和分析。运用O/R Mapping理论,使用Mysql数据库。本系统主要采用四个层次:视图层、业务逻辑层、ORM层,数据库层。含商品发布及管理子系统、订单子系统合物流子系统、以及综合管理系统。-The system is based on J2EE framework of a B/S e-commerce system online bookstores. Using B/S model to provide enterprises with a powerful e-commerce platform. Implementation of enterprise marketing system for comprehensive information control and improve online bookstores throughout the information system security. Through the Web server through the client browser and the server communicate information. Through JDBC technology and articulated the dynamic database, the information fresh, Using MVC model provides system flexibility and portability. Implementation of the information online bookstores global information system monitoring and analysis. Use O/R Mapping theory, the use Mysql database. The system is mainly used four levels : View layer, the business logic tier, ORM layer, t
Platform: |
Size: 875520 |
Author: 张宏 |
Hits:
Description: 一、简介
www.josdn.com是基于mvnForum Jsp/Servlet开发,支持Jsp 1.2 和 Servlet 2.3,安装和使用都非常简单。
主要特征:
基于 MVC 架构
内建数据库连接池
多种数据库 (DB2, MySQL, Oracle 8i/9i, Sql Server, postgreSQL, hsqldb, Interbase/Firebird, SAPDB)
国际化 (支持14种语言: English, 简体, 繁体等等)
Jakarta Common Logging
这里可以查看论坛功能和全部特征。
JAVA Open Source Development Network, 致力于打造全国最大的JAVA开源平台,向用户提供专业、快捷、精确、全面、海量、实时的开源资讯数据服务
-1, Introduction www.josdn.com is based on mvnForum Jsp/Servlet development, support Jsp 1.2 and Servlet 2.3, the installation and use are very simple. Main features: Built-based MVC framework for database connection pool multiple databases (DB2, MySQL, Oracle 8i/9i, Sql Server, postgreSQL, hsqldb, Interbase/Firebird, SAPDB) Internationalization (supports 14 languages: English, Simplified Chinese, Traditional etc.) Jakarta Common Logging here to view the forum features and all the characteristics. JAVA Open Source Development Network, is committed to build the country
Platform: |
Size: 10743808 |
Author: |
Hits:
Description: 系统概述:
本系统基于Java平台,采用设计模式:MVC(模型--视图--控制),采用的技术:Jsp+JavaBean+Struts+JDBC,
数据库:MySQL
Struts采用Struts 1.2 版本,MySQL采用MySQL5.0-System Overview: This system is based on the Java platform, using design patterns: MVC (Model View Control), the technologies used: Jsp+ JavaBean+ Struts+ JDBC, database: MySQLStruts using Struts 1.2 version, MySQL used MySQL5.0
Platform: |
Size: 3535872 |
Author: 凯强 |
Hits:
Description: 需要平台:Myeclips+Mysql或Myeclips+SQL Server 2-The need for platform: Myeclips+ Mysql or Myeclips+ SQL Server 2
Platform: |
Size: 20480 |
Author: 李四 |
Hits:
Description: java信息管理系统本系统基于Java平台,采用设计模式:MVC(模型--视图--控制),采用的技术:Jsp+JavaBean+Struts+JDBC,数据库:MySQL
Struts采用Struts 1.2 版本,MySQL采用MySQL5.0-java information management system of the system based on the Java platform, using design patterns: MVC (Model View Control), the technologies used: Jsp+ JavaBean+ Struts+ JDBC, database: MySQLStruts using Struts 1.2 version, MySQL used MySQL5.0
Platform: |
Size: 1764352 |
Author: 林祥华 |
Hits:
Description: 感觉很好用的源代码,其中用到的语言以及工具有Java, MySql ,JAVAEE ,jsp
JavaScript语言,javaee框架和mvc模式-Feel good with the source code, which uses the language and tools are Java, MySql, JAVAEE, jspJavaScript language, javaee model framework and mvc
Platform: |
Size: 5846016 |
Author: ygr |
Hits:
Description: java论坛代码。
mvc模式下的bbs论坛程序,界面仿国内高校的论坛。 jsp+javabeab+mysql,Structs。-Forum java code. mvc model bbs forum under the procedures, the interface of domestic colleges and universities like the forum. jsp+ javabeab+ mysql, Structs.
Platform: |
Size: 61440 |
Author: 王超 |
Hits:
Description: JAVA +MySql小型用户管理系统 运用Strust+Spring+Hibernate 3框架 实现mvc
jsp融合JavaScript+Ajax 技术 程序还有待完善-Strust+Spring+Hibernate JavaScript+Ajax
Platform: |
Size: 1786880 |
Author: 王恒 |
Hits:
Description: 图书管理系统的实现,MySQL+Struts 来实现该系统-Book Management System, MySQL+ Struts to implement the system ~ ~
Platform: |
Size: 914432 |
Author: yvwnn |
Hits:
Description: Java+jsp+mysql学生管理系统,功能相对比较简单,但是MVC的开发模式是可以值得学习的,希望各位可以借鉴一下-Java+ jsp+ mysql student management system, functionality is relatively simple, but the MVC pattern of development is worth learning, and I hope you can learn about
Platform: |
Size: 866304 |
Author: gaojunjia |
Hits:
Description: JavaCenter Home社区SNS系统软件(简称:JavaCenter Home) 是北京飞速创想科技有限公司推出的一套采用Java+MySQL 构建的社会化网络软件(Social Network Software,简称 SNS)。用户可以在不需要任何编程的基础上,通过简单的设置和安装,在互联网上搭建起具备完善功能、很强负载能力和可高度定制的社会化网络平台。JavaCenter Home 的基础架构采用世界上最先进流行的 web 编程组合 Java+MySQL 实现,是一个经过完善设计,适用于各种服务器环境的高效系统解决方案。系统用MVC设计模式,采用Struts、Hibernate框架及中间件的结合既实现了业务逻辑与控制逻辑的有效分离,提高了层次结构的清晰度,提高了复用的粒度降低了开发代价和维护代价,同时保证了软件的质量使其更具有鲁棒性和可维护性-JavaCenter Home Community SNS system software (referred to as: JavaCenter Home), Beijing Science and Technology Co., Ltd. introduced the rapid innovation to a set of built using Java+ MySQL social networking software (Social Network Software, referred to as the SNS). Users can not require any programming, based on a simple setup and installation, erected on the Internet have improved function, strong load capacity, and highly customizable social networking platform. JavaCenter Home infrastructure using the most advanced combination of the popular Java+ MySQL web programming to achieve, perfection is a design for a variety of server environments and efficient system solutions. Systems MVC design pattern, using Struts, Hibernate framework and middleware implementation of the business combination of both logic and control logic of the effective separation, improved the clarity of the hierarchy to improve the granularity of reuse reduces development costs and maintenance costs , while ensu
Platform: |
Size: 18784256 |
Author: stephen |
Hits:
Description: MVC模式开发的简单javaweb应用程序,应用MYSQL数据库,包含增删改查的基本功能,还有模糊查询的功能-javaweb MVC
Platform: |
Size: 459776 |
Author: zyj |
Hits:
Description: 基于SPRING MVC框架的登录功能DEMO。
使用MYSQL数据库。
代码有注释,有创建数据表脚本。-DEMO for Spring MVC.
database is MySQL.
Platform: |
Size: 17369088 |
Author: 柯舟洋 |
Hits:
Description: 用MyEclipse软件实现Java编写MVC分层架构的基本框架,包含MySQL及测试用例等。-MyEclipse software written in Java using the basic framework MVC layered architecture, including MySQL and test cases and so on.
Platform: |
Size: 777216 |
Author: 李槃 |
Hits:
Description: javascrip,java,mysql,mvc模式,综合网站,实现了增删改查系统 ,tomcat-Javascrip, Java, mysql, MVC, comprehensive website, to achieve crud system, Tomcat
Platform: |
Size: 291840 |
Author: luffy |
Hits:
Description: 基于mvc框架设计的仓库管理系统 运用jdbc和mysql(Warehouse management system based on MVC framework)
Platform: |
Size: 3531776 |
Author: xuli
|
Hits: