1、SSM框架项目实例源代码从注册开始结合数据库/SSM/WebRoot/0)etDeptno(); return ; etCommId(); return ; quals(pageIndex) pageIndex=1; else if(pageIndex)!=null&!.equals(pageIndex) pageIndex=(pageIndex); (pageIndex); quals(pageIndex) pageIndex=1; else if(pageIndex)!=null&!.equals(pageIndex) pageIndex=(pageIndex); (pageIndex);
2、 etDeptno(); Dept dept=(deptno); (dept); (dept, (); return ; public String updateDeptLast() int count=(); return ; public String updateCommFirst() etCommId(); Comm comm=(commId); (comm); (comm, (); return ; public String updateCommLast() etCommId(); (comm, comm); return ; public String showDeptDetai
3、ls() Dept dept=().getDeptno(); (dept, dept); return ; private String deptName; public String getDeptName() return deptName; public void setDeptName(String deptName) = deptName; etSession(); applicationMap=().getApplication(); requestMap=(Map)().get(request); request=(HttpServletRequest)().get; respo
4、nse=(HttpServletResponse)().get; application=(ServletContext)().get; session=(); paramsMap=().getParameters(); /SSM/src/config/ !DOCTYPE mapper PUBLIC -,d.*,c.* from emp_info e,emp_dept d,emp_comm c where = and =and ROWNUM >=#start and ROWNUM<=#end select * from (select rownum rn,c.* from emp_
5、comm c) where rn>=#start and rn<=#end select * from (select rownum rn,d.* from emp_dept d) where rn>=#start and rn<=#end /SSM/src/config/%String path = ();String basePath = ()+:al();al(); var Idno=$(#Idno).val(); var telephone=$(#telephone).val(); var password=$(#password).val(); if16) $
6、(#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;); var reg=/1-90-9$/; if(!(age) $(#agespan).html(年龄输入错误); $(#agespan).attr(style,font-size:11px;color:red;); return false;
7、else $(#agespan).html(OK); $(#agespan).attr(style,font-size:15px;color:green;); reg=/1-90-917$/; if(!(Idno) $(#idnospan).html(身份证输入有误); $(#idnospan).attr(style,font-size:11px;color:red;); return false; else $(#idnospan).html(OK); $(#idnospan).attr(style,font-size:15px;color:green;); reg=/134578d9$/;
8、 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-z6,16$/; if(!(password) $(#passwordspan).html(密码由6-16个字符组成可以有下划线 ,数字,字母 ); $(#passwordspan).attr(style,fo
9、nt-size:11px;color:red;); return; else $(#passwordspan).html(OK); $(#passwordspan).attr(style,font-size:15px;color:green;); function checkName()al(); var reg=/a-zA-Z0-95,16$/; if(!(empId) $(#empIdspan).html(*只能是字母和数字组成长度在5-16之间); $(#empId).focus; else $(#empIdspan).html(Ok); $(#empIdspan).attr(style
10、,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% base href= 员工详情 !- - 返回员工信息页面 员工编号 员工姓名 年龄 性别 账号 电话号码 身份证号 部门名称 薪资 !- -
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1