随笔分类 -  Jsp&Servlet入门级项目全程实录

摘要:惯例广告一发,对于初学真,真的很有用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.setString(1, student.getStuNo());... 阅读全文
posted @ 2013-07-01 17:24 cnmotive 阅读(373) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、获取搜索条件值 function searchStudent(){ $('#dg').datagrid('load',{ stuNo:$('#s_stuNo').val(), stuName:$('#s_stuName').val(), sex:$('#s_sex').combobox("getValue"), ... 阅读全文
posted @ 2013-07-01 13:06 cnmotive 阅读(451) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用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; private int gradeId; ... 阅读全文
posted @ 2013-07-01 07:08 cnmotive 阅读(354) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用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.setString(1, grade.get... 阅读全文
posted @ 2013-06-30 19:54 cnmotive 阅读(323) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、添加搜索、添加、修改、删除按钮 添加| 修改| 删除 班级名称:搜索 2、实现搜索功能 dao public ResultSet gradeList(Connection con,PageBean pageBean,Grade grade)throws Exception{ StringBuffer sb=new... 阅读全文
posted @ 2013-06-30 18:30 cnmotive 阅读(632) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、建立数据表及数据(略)2、装载驱动,建立数据表 编号 班级名称 班级描述 field:与数据库名称相同 fitColumns:自适应 pag... 阅读全文
posted @ 2013-06-29 10:16 cnmotive 阅读(374) 评论(0) 推荐(1) 编辑
摘要:惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、导入jquery-easyui-1.3.3包( http://www.jeasyui.com/)2、在页面导入easyui css js链接(demo/menu/basic.html);修改为本机链接地址;导入本地化中文包 3、easyui-layout class="easyui-layout"... 阅读全文
posted @ 2013-06-24 13:25 cnmotive 阅读(349) 评论(0) 推荐(0) 编辑
摘要:惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、jdbc数据库连接(略)2、登录表单 2.1设置内边距 2.2加载背景图片,设置居中及尺寸 2.3用户名 2.4密码 2.5登录 2.6js重置 调用onclick方法 function js函数document js DOM对象getElementById通过元素ID属性获取元素getElem... 阅读全文
posted @ 2013-06-23 12:55 cnmotive 阅读(328) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示