惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.jdbc数据库连接(略) 2.登录表单 2.1设置内边距 <dir style="padding-top:50px;"> 2.2加载背景图片,设置居中及尺寸 <table background="images/login.jpg" width="740" height="500" align="center&quo…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.添加dao public int studentAdd(Connection con,Student student)throws Exception{ String sql="insert into t_student values(null,?,?,?,?,?,?,?)"; PreparedStatement pstmt=con.prepareStatement(sql); pstmt.setSt…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.获取搜索条件值 function searchStudent(){ $('#dg').datagrid('load',{ stuNo:$('#s_stuNo').val(), stuName:$('#s_stuName').val(), sex:$('#s_sex').combobox("getValue"), bbirthday:$('#s_bbirthday').datebox("get…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.添加搜索.添加.修改.删除按钮 <div id="tb"> <div> <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加</a>| <a href="#"…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.建立数据表及数据(略) 2.装载驱动,建立数据表 <link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.3/themes/default/easyui.css"> <link rel="stylesheet" type="text/css&qu…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.导入jquery-easyui-1.3.3包( http://www.jeasyui.com/) 2.在页面导入easyui css js链接(demo/menu/basic.html):修改为本机链接地址:导入本地化中文包 <link rel="stylesheet" type="text/css" href="jquery-easyui-1.3.3/themes…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.建立数据表及数据(略) 2.创建student model package com.java1234.model; import java.sql.Date; public class Student { private int id; private String stuNo; private String stuName; private String sex; private Date birthday;…
惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.修改功能实现 dao public int gradeAdd(Connection con,Grade grade)throws Exception{ String sql="update t_grade set gradeName=?,gradeDesc=? where id=?"; PreparedStatement pstmt=con.prepareStatement(sql); pstmt.s…
本地项目 在本地类库中,我经常使用当前目录来放置.properties文件,这时调用方只要引用我的jar,并且将我的.properties放在他的classpath里面即可,比如: p.load(new FileInputStream("HanLP.properties")); 这样类似下图的项目结构就可以跑起来: JSP/Servlet Web项目 但是到了Web项目时,情况大不相同.在Tomcat下,classpath里只含apache-tomcat-8.0.14\bin目录下有限…
1 根据需求建立Mysql数据,确立数据库的表的字段.属性.主键,外键等.下面我使用的数据库名dev ,表名user,字段  name,设置为主键.用户名不能为空,字段password,密码 2 在Eclipes中new file ,other 找到 Maven ,选择 Mavne Mroject, New  Mavne Mroject,Next之后,下拉到最下面,选择Webapp,接着Next.填写所属组织 Group Id  , Artifact Id,项目名.Finish.到这里Maven…