摘要: 1、标识符 1.1 标识符以字母、下划线、美元符开头 1.2 标识符由字母、下划线、美元符或数字组成 1.3 标识符区分大小写 1.4 不能与Java关键字同名 1.5 见名知意2、关键字 2.1 关键字都是小写 2.2 goto和const Java保留关键字3、常量 3.1 整型常量123 3.2 实型常量3.14 3.3 字符常量‘a’ 3.4 逻辑常量 true false 3.5 字符串常量 “helloworld” 3.6 final关键字4、变量 4.0 变量要素包括变量名、变量类型、作用域 4.1 从本质上讲,变量其实是内存中的一小块区域,使用变量... 阅读全文
posted @ 2013-07-08 06:48 cnmotive 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1 下载 1.1oracle官方网站http://www.oracle.com/index.html 1.2 点击DOWNLOADShttp://www.oracle.com/technetwork/indexes/downloads/index.html 1.3 点击右侧Java Java SEhttp://www.oracle.com/technetwork/java/javase/downloads/index.html 1.4 点击JavaDOWNLOADShttp://www.oracle.com/technetwork/java/javase/downloads/jdk7-... 阅读全文
posted @ 2013-07-07 09:37 cnmotive 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、拷贝Struts2所属文件 1.1struts.xml 1.2lib jar包 1.3web.xml添加复制 struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* 2、HelloWorld 2.1struts.xml ... 阅读全文
posted @ 2013-07-03 11:02 cnmotive 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用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 阅读(369) 评论(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 阅读(447) 评论(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 阅读(349) 评论(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 阅读(320) 评论(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 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧!1、建立数据表及数据(略)2、装载驱动,建立数据表 编号 班级名称 班级描述 field:与数据库名称相同 fitColumns:自适应 pag... 阅读全文
posted @ 2013-06-29 10:16 cnmotive 阅读(367) 评论(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 阅读(327) 评论(0) 推荐(0) 编辑