SSM框架项目实例源代码从注册开始结合数据库.docx

上传人:b****8 文档编号:23671695 上传时间:2023-05-19 格式:DOCX 页数:12 大小:17.22KB
下载 相关 举报
SSM框架项目实例源代码从注册开始结合数据库.docx_第1页
第1页 / 共12页
SSM框架项目实例源代码从注册开始结合数据库.docx_第2页
第2页 / 共12页
SSM框架项目实例源代码从注册开始结合数据库.docx_第3页
第3页 / 共12页
SSM框架项目实例源代码从注册开始结合数据库.docx_第4页
第4页 / 共12页
SSM框架项目实例源代码从注册开始结合数据库.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

SSM框架项目实例源代码从注册开始结合数据库.docx

《SSM框架项目实例源代码从注册开始结合数据库.docx》由会员分享,可在线阅读,更多相关《SSM框架项目实例源代码从注册开始结合数据库.docx(12页珍藏版)》请在冰豆网上搜索。

SSM框架项目实例源代码从注册开始结合数据库.docx

SSM框架项目实例源代码从注册开始结合数据库

/SSM/WebRoot/

<%@pagelanguage="java"import=".*"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

quals(("pageIndex")))){

pageIndex=1;

}elseif(("pageIndex"))!

=null&&!

"".equals(("pageIndex")))){

pageIndex=("pageIndex"));

}

(pageIndex);

etDeptName().getDeptName());etSalary().getSalary());etDeptno());

if(count>0){etDeptno());

return;

}

}

etCommId());

return;

}

quals(("pageIndex")))){

pageIndex=1;

}elseif(("pageIndex"))!

=null&&!

"".equals(("pageIndex")))){

pageIndex=("pageIndex"));

}

(pageIndex);

quals(("pageIndex")))){

pageIndex=1;

}elseif(("pageIndex"))!

=null&&!

"".equals(("pageIndex")))){

pageIndex=("pageIndex"));

}

(pageIndex);

etDeptno();

Deptdept=(deptno);

(dept);

("dept",());

return;

}

publicStringupdateDeptLast(){

intcount=());

return;

}

publicStringupdateCommFirst(){

etCommId();

Commcomm=(commId);

(comm);

("comm",());

return;

}

publicStringupdateCommLast(){

etCommId());

("comm",comm);

return;

}

publicStringshowDeptDetails(){

Deptdept=().getDeptno());

("dept",dept);

return;

}

privateStringdeptName;

publicStringgetDeptName(){

returndeptName;

}

publicvoidsetDeptName(StringdeptName){

=deptName;

}

etSession();

applicationMap=().getApplication();

requestMap=(Map)().get("request");

request=(HttpServletRequest)().get;

response=(HttpServletResponse)().get;

application=(ServletContext)().get;

session=();

paramsMap=().getParameters();

}

/SSM/src/config/

xmlversion=""encoding="UTF-8"?

>

DOCTYPEmapper

PUBLIC"-,d.*,c.*fromemp_infoe,emp_deptd,emp_commcwhere=and=andROWNUM>=#{start}andROWNUM<=#{end}

--福利分-->

select*from(selectrownumrn,c.*fromemp_commc)wherern>=#{start}andrn<=#{end}

--部门分deptno;.

privateStringdeptName;-->

select*from(selectrownumrn,d.*fromemp_deptd)wherern>=#{start}andrn<=#{end}

/SSM/src/config/

xmlversion=""encoding="UTF-8"?

>

DOCTYPEconfiguration

PUBLIC"-"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

al();al();

varIdno=$("#Idno").val();

vartelephone=$("#telephone").val();

varpassword=$("#password").val();

if<2||>16){

$("#namespan").html("*长度不正确(最短2位,最长16位)");

$("#namespan").attr("style","font-size:

12px;color:

red;");

return;

}else{

$("#namespan").html("OK");

$("#namespan").attr("style","font-size:

15px;color:

green;");

}

varreg=/^[1-9][0-9]$/;

if(!

(age)){

$("#agespan").html("年龄输入错误");

$("#agespan").attr("style","font-size:

11px;color:

red;");

returnfalse;

}else{

$("#agespan").html("OK");

$("#agespan").attr("style","font-size:

15px;color:

green;");

}

reg=/^[1-9][0-9]{17}$/;

if(!

(Idno)){

$("#idnospan").html("身份证输入有误");

$("#idnospan").attr("style","font-size:

11px;color:

red;");

returnfalse;

}else{

$("#idnospan").html("OK");

$("#idnospan").attr("style","font-size:

15px;color:

green;");

}

reg=/^1[34578]\d{9}$/;

if(!

(telephone)){

$("#telspan").html("电话号码输入有误");

$("#telspan").attr("style","font-size:

11px;color:

red;");

return;

}else{

$("#telspan").html("OK");

$("#telspan").attr("style","font-size:

15px;color:

green;");

}

reg=/^[_0-9a-z]{6,16}$/;

if(!

(password)){

$("#passwordspan").html("密码由6-16个字符组成可以有下划线,数字,字母");

$("#passwordspan").attr("style","font-size:

11px;color:

red;");

return;

}else{

$("#passwordspan").html("OK");

$("#passwordspan").attr("style","font-size:

15px;color:

green;");

}

}

functioncheckName(){al();

varreg=/^[a-zA-Z0-9]{5,16}$/;

if(!

(empId)){

$("#empIdspan").html("*只能是字母和数字组成长度在5-16之间");

$("#empId").focus;

}else{

$("#empIdspan").html("Ok");

$("#empIdspan").attr("style","font-size:

15px;color:

green;");

}

$.ajax({

url:

"",

type:

"post",

data:

{"":

empId},

asyc:

false,

dataType:

"json",

beforeSend:

function(data){},

tml("*用户名存在不可以使用");

$("#empIdspan").attr("style","font-size:

12px;color:

red;");

$("#empId").val("");

}else{

$("#empIdspan").html("");

}

},

/*error:

function(XMLHttpRequest,textStatus,errorThrown){"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

eady(function(){

varempId=$("#empId").val();

alert(empId);

varreg=/^[a-zA-Z0-9]{5,16}$/;

if(!

(empId)){

$("#empIdspan").html("*只能是字母和数字组成长度在5-16之间");

$("#empId").focus;

}else{

$("#empIdspan").html("Ok");

$("#empIdspan").attr("style","font-size:

15px;color:

green;");

}

varpassword=$("#password").val();

tml("密码由6-16个字符组成可以有下划线,数字,字母");

$("#passwordspan").attr("style","font-size:

11px;color:

red;");

return;

}else{

$("#passwordspan").css("display","none");

}

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="UTF-8"%>

<%

Stringpath=();

StringbasePath=()+":

hecked){"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

"pageEncoding="utf-8"%>

<%

Stringpath=();

StringbasePath=()+":

//"+()+":

"+()+path+"/";

%>

<%@tagliburi="/struts-tags"prefix="s"%>

DOCTYPEHTMLPUBLIC"-//W3C//DTDHTMLTransitional//EN">

">

员工详情

--

-->

返回员工信息页面

10px;text-align:

center;"border="1pxsolidred"align="center"cellspacing="0"cellpadding="0"width="680px"height="180px">

员工编号

员工姓名

年龄

性别

账号

电话号码

身份证号

部门名称

薪资

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

--

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>

propertyvalue="#"/>-->

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工作范文 > 行政公文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1