`
阿尔萨斯
  • 浏览: 4472095 次
社区版块
存档分类
最新评论

STRUTS+HIBERNATE+ORACLE分页

 
阅读更多

主要由:
message.jsp
MessageForm
MessageAction
Player.hbm.xml
struts-config.xml
MeisaiBean.java
来实现:
先看数据库结构:
CREATE TABLE player
(
PLAYER_ID VARCHAR(32) PRIMARY KEY,
TEAM VARCHAR(3),
displayName VARCHAR(100),
LAST_NAME VARCHAR(100),
MIDDLE_NAME VARCHAR(100),
STATUS VARCHAR(32),
POS VARCHAR(1),
PPG INTEGER default 25
);

INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2113999','DAL','Dirk',null,'',null,'F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30361','IND','Ron','Artest','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30273','ORL','Tracy','McGrady','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30190','LAL','Kobe','Bryant','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30328','SEA','Rashard','Lewis','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30197','NJN','Kerry','Kittles','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30341','HOU','Steve','Francis','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30146','MIN','Kevin','Garnett','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2113993','BOS','Paul','Pierce','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30050','NJN','Jason','Kidd','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30215','ATL','Shareef','Abdur-Rahim','','I','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('1861922','ORL','Mike','Miller','','I','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30144','ATL','Glenn','Robinson','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2019703','GSW','Gilbert','Arenas','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2028505','UTH','Andrei','Kirilenko','','I','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30382','PHO','Shawn','Marion','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('29941','SEA','Brent','Barry','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2114000','DAL','Michael','Finley','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30187','BOS','Antoine','Walker','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30234','SAC','Bobby','Jackson','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('29968','WAS','Jerry','Stackhouse','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('29944','SAC','Doug','Christie','','I','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30095','CHI','Donyell','Marshall','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2028865','ATL','Ira','Newble','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30029','SEA','Gary','Payton','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30141','TOR','Voshon','Lenard','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30020','MIL','Toni','Kukoc','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30154','NOR','P.J.','Brown','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30125','MIA','Eddie','Jones','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30359','ATL','Jason','Terry','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30291','UTH','Matt','Harpring','','A','F');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('30228','MIL','Ray','Allen','','A','G');
INSERT INTO player (PLAYER_ID,TEAM,displayName,LAST_NAME,MIDDLE_NAME,STATUS,POS) VALUES ('2028503','SEA','Vladimir','Radmanovic','','A','F');
对应的player.hbm.xml如下:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>


<!-- test player-->
<class name="com.ecc.hibernate.hbm.Player" table="PLAYER">
<id name="PlayerId" column="player_id" type="string" length="32">
<generator class="uuid.string"/>
</id>
<property name="Team" column="team" type="string" length="3"/>
<property name="DisplayName" column="displayname" type="string" length="100"/>
<property name="LastName" column="last_name" type="string" length="100"/>
<property name="MiddleName" column="middle_name" type="string" length="100"/>
<property name="Status" column="status" type="string" length="32"/>
<property name="Pos" column="pos" type="string" length="1"/>
<property name="Ppg" column="ppg" type="long" length="22"/>
</class>
</hibernate-mapping>
现在看MeisaiBean.java
package com.ecc.util;

import java.io.Serializable;

public class MeisaiBean implements Serializable{

public MeisaiBean() {
}

public String label_1 = "";
public void setLabel_1(String str) {
this.label_1 = str;
}

public String getLabel_1() {
return this.label_1;
}

public String label_2 = "";
public void setLabel_2(String str) {
this.label_2 = str;
}

public String getLabel_2() {
return this.label_2;
}

public String label_3 = "";
public void setLabel_3(String str) {
this.label_3 = str;
}

public String getLabel_3() {
return this.label_3;
}

public String label_4 = "";
public void setLabel_4(String str) {
this.label_4 = str;
}

public String getLabel_4() {
return this.label_4;
}

public String label_5 = "";
public void setLabel_5(String str) {
this.label_5 = str;
}

public String getLabel_5() {
return this.label_5;
}

public String label_6 = "";
public void setLabel_6(String str) {
this.label_6 = str;
}

public String getLabel_6() {
return this.label_6;
}

public String label_7 = "";
public void setLabel_7(String str) {
this.label_7 = str;
}

public String getLabel_7() {
return this.label_7;
}

public String label_8 = "";
public void setLabel_8(String str) {
this.label_8 = str;
}

public String getLabel_8() {
return this.label_8;
}

public String label_9 = "";
public void setLabel_9(String str) {
this.label_9 = str;
}

public String getLabel_9() {
return this.label_9;
}

public String label_10 = "";
public void setLabel_10(String str) {
this.label_10 = str;
}

public String getLabel_10() {
return this.label_10;
}

public String label_11 = "";
public void setLabel_11(String str) {
this.label_11 = str;
}

public String getLabel_11() {
return this.label_11;
}

public String label_12 = "";
public void setLabel_12(String str) {
this.label_12 = str;
}

public String getLabel_12() {
return this.label_12;
}

public String label_13 = "";
public void setLabel_13(String str) {
this.label_13 = str;
}

public String getLabel_13() {
return this.label_13;
}

public String label_14 = "";
public void setLabel_14(String str) {
this.label_14 = str;
}

public String getLabel_14() {
return this.label_14;
}

public String label_15 = "";
public void setLabel_15(String str) {
this.label_15 = str;
}

public String getLabel_15() {
return this.label_15;
}

public String label_16 = "";
public void setLabel_16(String str) {
this.label_16 = str;
}

public String getLabel_16() {
return this.label_16;
}

public String label_17 = "";
public void setLabel_17(String str) {
this.label_17 = str;
}

public String getLabel_17() {
return this.label_17;
}

public String label_18 = "";
public void setLabel_18(String str) {
this.label_18 = str;
}

public String getLabel_18() {
return this.label_18;
}

public String label_19 = "";
public void setLabel_19(String str) {
this.label_19 = str;
}

public String getLabel_19() {
return this.label_19;
}

public String label_20 = "";
public void setLabel_20(String str) {
this.label_20 = str;
}

public String getLabel_20() {
return this.label_20;
}

public String label_21 = "";
public void setLabel_21(String str) {
this.label_21 = str;
}

public String getLabel_21() {
return this.label_21;
}
}
MessageForm.java:

//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.2/xslt/JavaClass.xsl

package com.ecc.struts.message.formbean;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.*;
/**
* MyEclipse Struts
* Creation date: 01-06-2005
*
* XDoclet definition:
* @struts:form name="testRegistForm"
*/
public class MessageForm extends ActionForm {
public MessageForm(){}
private String label1="";

/**
* @return
*/
public String getLabel1() {
return label1;
}

/**
* @param string
*/
public void setLabel1(String string) {
label1 = string;
}
private Vector meisai = new Vector();
public void setMeisai(Vector meisai) {this.meisai = meisai; }
public Vector getMeisai(){return meisai; }

private int currentPage=0;

/**
* @return
*/
public int getCurrentPage() {
return currentPage;
}

/**
* @param i
*/
public void setCurrentPage(int i) {
currentPage = i;
}
private int totalPage=0;

/**
* @return
*/
public int getTotalPage() {
return totalPage;
}

/**
* @param i
*/
public void setTotalPage(int i) {
totalPage = i;
}

}
MessageAction.java:
//Created by MyEclipse Struts
// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.2/xslt/JavaClass.xsl

package com.ecc.struts.message.action;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.SessionActionMapping;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import com.ecc.struts.message.formbean.*;
import com.ecc.util.*;
import java.security.*;
import com.ecc.util.security.password.*;
import com.ecc.exception.regist.*;
import com.ecc.hibernate.db.*;
import net.sf.hibernate.*;
import net.sf.hibernate.cfg.*;
import com.ecc.hibernate.*;
import com.ecc.hibernate.hbm.*;
import java.util.*;
public class MessageAction extends Action{

// --------------------------------------------------------- Instance Variables

// --------------------------------------------------------- Methods

/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
private void setPage(ActionForm form,int currentPage){
Transaction tx=null;
Session session=null;
int totalCount=0;
String playerid="";
String team="";
String displayname="";
int firstIndex=0;
int itemsInPerPage=10;
try{
MessageForm messageForm = (MessageForm) form;
session = HbUnit.getSession();
tx= session.beginTransaction();
currentPage=messageForm.getCurrentPage();
if (currentPage<=0){
messageForm.setCurrentPage(1);
firstIndex=0;
}else
{
firstIndex=currentPage*itemsInPerPage-itemsInPerPage;
}
String sql="select player from Player as player";
Query query = session.createQuery
(sql);
query.setFirstResult(firstIndex);
query.setMaxResults(itemsInPerPage);
Iterator it=query.iterate();
Vector meisaiList=new Vector();
while(it.hasNext()){
Player player=(Player)it.next();
playerid=StrHandle.replaNull(player.getPlayerId());
team=StrHandle.replaNull(player.getTeam());
displayname=StrHandle.replaNull(player.getDisplayName());
MeisaiBean meisai=new MeisaiBean();

meisai.setLabel_1(playerid);
meisai.setLabel_2(team);
meisai.setLabel_3(displayname);
meisaiList.add(meisai);
}
messageForm.setMeisai(meisaiList);
tx.commit();
}
catch(Exception ex){
try{
tx.rollback();
}catch(Exception eex){
}
System.out.println(ex);
ex.printStackTrace();
}finally{
try{
HbUnit.closeSession();
}catch(Exception ex){
}
}
}
private int getRecordSize(){
Transaction tx=null;
Session session=null;
int totalCount=0;
try{
session = HbUnit.getSession();
tx= session.beginTransaction();
totalCount=( (Integer) session.iterate("select count(*) from Player").next() ).intValue();
tx.commit();
return totalCount;
}
catch(Exception ex){
try{
tx.rollback();
}catch(Exception eex){
}
System.out.println(ex);
ex.printStackTrace();
return -1;
}finally{
try{
HbUnit.closeSession();
}catch(Exception ex){
}
}
}
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
MessageForm messageForm = (MessageForm) form;

String target="";
int size=0;
int perItemsPage=10;
int modItems=0;
int totalPages=0;
int currentPage=0;
try{
currentPage=messageForm.getCurrentPage();
size=getRecordSize();
if(size<=0){
target="noitemfound";
}
else
{
totalPages=size/perItemsPage;
modItems=size%perItemsPage;
if(modItems>0)totalPages+=1;
System.out.println("Record Size:"+size);
System.out.println("Total page:"+totalPages);
messageForm.setTotalPage(totalPages);
setPage(form,currentPage);
System.out.println("total page:"+totalPages);
target="success";
}
}catch(Exception ex){
System.out.println(ex);
ex.printStackTrace();
}
return (mapping.findForward(target));
}
}
Message.jsp如下:

<%@ page language="java"%>
<%@ page contentType="text/html; charset=GB2312" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
<head>
<title>JSP for testRegistForm form</title>
<STYLE type=text/css>
FONT-SIZE: 9pt{
}
A {
COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
.bt {
BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 9pt; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 50px; CURSOR: hand; HEIGHT: 16px; BACKGROUND-COLOR: #808080; BORDER-RIGHT-WIDTH: 0px
}
.tx1 {
BORDER-RIGHT: black 1px ridge; BORDER-TOP: black 1px ridge; FONT-SIZE: 9pt; BORDER-LEFT: black 1px ridge; WIDTH: 60pt; COLOR: #000000; BORDER-BOTTOM: #000000 1px ridge; HEIGHT: 20px
}
</STYLE>
</head>
<Script Language="JavaScript">
function gotoNext(){
var currentPage=parseInt(MessageForm.currentPage.value);
var totalPage=parseInt(MessageForm.totalPage.value);
currentPage=currentPage+1;
if(currentPage>totalPage){
currentPage=totalPage;
}
var url="message.do?currentPage="+currentPage;
alert(url);
document.location=url;
}
function gotoPrev(){
var currentPage=parseInt(MessageForm.currentPage.value);
var totalPage=parseInt(MessageForm.totalPage.value);
if(currentPage<=0){
currentPage=0;
}else{
currentPage=currentPage-1;
}
var url="message.do?currentPage="+currentPage;
alert(url);
document.location=url;
}
function gotoTop(){

var url="message.do?currentPage=1";
alert(url);
document.location=url;
}
function gotoLast(){
var totalPage=parseInt(MessageForm.totalPage.value);
var url="message.do?currentPage="+totalPage;
alert(url);
document.location=url;
}
</Script>
<body>
<html:form name="MessageForm" action="/message.do" type="com.ecc.struts.message.formbean.MessageForm" scope="request">
<html:text property="currentPage"/></br>
<html:text property="totalPage"/></br>
</html:form>
<table>
<tr>
<td><input value="top" type="button" onclick="gotoTop();">
<td><input value="prev" type="button" onclick="gotoPrev();">
<td><input value="next" type="button" onclick="gotoNext();">
<td><input value="last" type="button" onclick="gotoLast();">
</tr>
</table>
<table border='1'>
<logic:present name="MessageForm" scope="request">
<logic:iterate id="meisaiList" name="MessageForm" property="meisai" scope="request">
<tr>
<td>
<bean:write name="meisaiList" property="label_1" />
</td>
<td>
<bean:write name="meisaiList" property="label_2" />
</td>
<td>
<bean:write name="meisaiList" property="label_3" />
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
</body>
</html>

分享到:
评论

相关推荐

    struts2.0 + hibernate + oracle 分页问题

    通过阅读和学习这些代码,你可以了解到如何将Struts2的请求处理与Hibernate的数据库操作结合,以实现基于Oracle的分页功能。 总结来说,Struts2.0处理HTTP请求,Hibernate管理数据持久化,而Oracle提供高效的数据...

    struts+hibernate3+spring2+oracle10g的研究人员查询系统

    Struts、Hibernate3、Spring2和Oracle10g是经典的Java企业级开发技术栈,用于构建高效、可扩展且易于维护的Web应用程序。这个研究人员查询系统利用这些技术,旨在为研究工作提供强大的数据管理和检索功能。 **...

    Struts2+Spring+Hibernate+Ehcache+AJAX+JQuery+Oracle 框架集成用户登录注册Demo工程

    4.在服务端分页查询功能,优点:实时性:跳页才查询。数据量小:只加载当前页的记录进行显示。 5.单数据源配置(兼容Tomcat和Weblogic)。 6.Hibernate继承 HibernateDaoSupport。 7.Spring+Junit4单元测试,优点:...

    网上购物车struts+spring+hibernate实现

    Struts、Spring 和 Hibernate 是Java Web开发中三个非常重要的开源框架,它们共同构成了所谓的SSH(Struts + Spring + Hibernate)框架。这篇描述提到的是一个基于SSH框架实现的网上购物车系统,下面将详细介绍这三...

    ssh Struts2.2+Hibernate3.6+Spring3.1+oracle 分页示例.zip

    在这个"ssh Struts2.2+Hibernate3.6+Spring3.1+oracle 分页示例.zip"压缩包中,开发者提供了一个使用这些技术实现的分页功能示例。下面将详细介绍SSH框架以及Oracle数据库的分页技术。 **Struts2** 是一个基于MVC...

    struts+hibernate的通用分页程序

    ### Struts + Hibernate 的通用分页程序 #### 一、背景与概述 在现代Web开发中,分页是一项常见的功能需求。特别是在展示大量数据时,为了提高用户体验和系统性能,通常会采用分页技术来逐步加载数据。Struts 和 ...

    Hibernate+Struts2+Spring+Oracle分页亲测

    标题中的“Hibernate+Struts2+Spring+Oracle分页亲测”揭示了这个项目或教程是关于使用四个关键的Java Web开发技术实现分页功能的。这四个技术分别是Hibernate(一个对象关系映射框架),Struts2(一个MVC框架),...

    Struts+Hibernate作的BBS

    总的来说,这个BBS项目展示了如何利用Struts和Hibernate的组合来构建一个功能丰富的Web应用,同时利用Oracle 9i作为后端存储,以及管理各种资源文件以确保应用的正常运行。这样的项目有助于开发者深入理解MVC架构和...

    基于Java实现的会员管理系统(struts+hibernate+spring)源码.zip

    可能使用的数据库有MySQL、Oracle等,系统通过Hibernate与数据库进行交互,处理会员数据的存储和检索。 这个会员管理系统源码的实现,对于学习Java Web开发和理解MVC架构有着重要的实践价值。通过分析源码,可以...

    Ajax+hibernate+struts实现无刷新的分页

    本篇将详细介绍如何利用Ajax、Hibernate和Struts框架,构建一个在用户界面上实现无刷新的分页系统,同时数据库采用Oracle。 ### 一、Hibernate分页 **1. Hibernate的Criteria查询** Hibernate 提供了 Criteria API...

    J2EE三大框架_笔记_a

    J2EE三大框架_笔记 共分三块: J2EE框架_笔记_a: 1-JSP+JDBC_假分页笔记 2-JSP+JDBC_真分页(基于Oracle数据库...53使用Struts + Spring + Hibernate完成分页笔记 54留言管理程序_Struts + Spring + Hibernate笔记

    J2EE框架_笔记_c

    J2EE三大框架_笔记 共分三块: J2EE框架_笔记_a: 1-JSP+JDBC_假分页笔记 2-JSP+JDBC_真分页(基于Oracle数据库...53使用Struts + Spring + Hibernate完成分页笔记 54留言管理程序_Struts + Spring + Hibernate笔记

    J2EE框架_笔记_b

    J2EE三大框架_笔记 共分三块: J2EE框架_笔记_a: 1-JSP+JDBC_假分页笔记 2-JSP+JDBC_真分页(基于Oracle数据库...53使用Struts + Spring + Hibernate完成分页笔记 54留言管理程序_Struts + Spring + Hibernate笔记

    javaEE框架笔记,识货人下

    53使用Struts + Spring + Hibernate完成分页笔记.pdf 54留言管理程序_Struts + Spring + Hibernate笔记.pdf 6-Struts标签-BEAN标签笔记.pdf 7-Struts标签 -LOGIC标签笔记.pdf 8-Struts标签- HTML标签笔记.pdf 9-...

    毕业设计jsp+Sturts+hibernate的添删改查以及分页!采用Oracle数据库

    采用Oracle数据库" 是一个基于Web的新闻管理系统,它利用了Java Web技术栈中的核心组件,包括JSP(JavaServer Pages)、Struts、Hibernate,以及数据库管理工具Oracle。这个系统的主要功能是实现对新闻数据的添加、...

    Struts1+Spring+hibernate《最新三国人物分页》

    Struts1、Spring和Hibernate是Java Web开发中的三...这个项目实例可以帮助开发者深入理解Struts1、Spring和Hibernate的整合使用,以及如何实现分页查询。对于学习者而言,通过实际操作和调试,可以更好地掌握这些技术。

    Struts2+Hibernate新闻发布系统增删改查

    总的来说,这个"Struts2+Hibernate新闻发布系统"是一个典型的Java Web应用实例,它展示了如何整合两大框架实现CRUD操作和分页功能,并与Oracle数据库进行有效交互。对于初学者来说,这是一个很好的学习项目,能够...

    Struts2+Hibernate jsp 增删改查 分页

    在这个"Struts2+Hibernate jsp 增删改查 分页"项目中,开发者利用这两个框架创建了一个新闻发布系统。系统的核心功能包括对新闻数据的基本操作——增(添加新闻)、删(删除新闻)、改(修改新闻内容)和查(查询...

    Struts2+Hibernate3开发实现青鸟租房管理系统

    本项目使用了Struts2+Hibernate3框架技术, 同时使用Oracle数据库技术,附带sql执行脚本,多条插入语句技术, 实现了上传并限制格式和大小的功能, 实现了datetimepicker选择日期的功能, 实现了用户注册功能, 实现了...

    (3.0版本)自己写的struts2+hibernate+spring实例

    jar包:项目中除了使用了struts2,hibernate3.0和spring1.8以外(用spring2.0的包也可以.不能低于1.8的包.)还是用了junit,ajax,第三方的table组件.等等.所以需要下载相对应的包. 为了上传jar.我专门申请了一个网盘.所有...

Global site tag (gtag.js) - Google Analytics