CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - action dao
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - action dao - List
[
Other
]
7
DL : 0
建立学生数据库及其信息表,创建java项目并为其增加Spring、Hibernate开发能力,Struts 2 将JSP中的页面跳转控制功能分离出来,而当它要执行控制逻辑的具体处理是就直接使用Spring中的Action模块; Action在处理中若要访问数据库,则通过DAO组件提供的接口,而接口的实现类才能直接操作数据库,实现插入数据(包括学号,姓名,专业,成绩),查询显示数据; Hibernate将数据库表持久化为POJO类,DAO类再以面向对象方式从已持久化了的POJO类中读取数据。(Integration of three frameworks to implement information query and insert)
Date
: 2025-12-29
Size
: 4.46mb
User
:
撒按时
[
Other
]
javaWeb网上订餐系统
DL : 0
SSH是struts+spring+hibernate集成的web应用程序开源框架。 Struts:用来控制的,核心控制器是Controller。 Spring:对Struts和Hibernate进行管理,整合的。 Hiernate:操控数据库 struts标签库:Struts2默认的表达式语言是OGNL(Object-Graph Navigation Language),通过它可以存取对象的任意属性、调用对象的方法、遍历整个对象的结构图、实现字段类型转换等功能。 JSP: HTML文件中插入Java程序段和JSP标记。 web.xml: Struts2核心过滤器和监听器 struts.xml: 管理应用中的Action映射,及Action处理结果和物理资源之间的映射。 applicationContext.xml: 整合了struts和Hibernate。 *.hbm.xml:O/R Mapping(Object Relational Mapping)映射文件,实体和表的映射关系通过XML来描述的文件。在项目启动的时候加载到内存中。 PO:Persistent Object,持久化对象 整体的调用关系:JSP–Action–Service–DAO–PO–数据库(SSH is an open source framework for struts+spring+hibernate integrated web applications. Struts: the core controller is Controller for control. Spring: Struts and Hibernate are managed and integrated. Hiernate: manipulate the database)
Date
: 2025-12-29
Size
: 30.04mb
User
:
饿地方人大
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.