摘要: (非原创) 用户注册 用户名: 密 码: 确认密码: 警告:禁止粘贴 身份证号: 性 别:男女 出生日期: YYYY-MM-DD或者YYYY/MM/DD 籍 贯: 爱 好:音乐 篮球 旅游 睡觉 * 全选 反选 邮 箱: 手机号码: 自我介... 阅读全文
posted @ 2014-07-17 22:09 框框A 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Show an error dialog that displays the message, 'alert':JOptionPane.showMessageDialog(null, "alert", "alert", JOptionPane.ERROR_MESSAGE); Show an inte... 阅读全文
posted @ 2014-07-17 21:41 框框A 阅读(606) 评论(0) 推荐(0) 编辑
摘要: (非原创)方式1: JSP前端 方式2: Java后台public void popAlert() { response.setCharacterEncoding("utf-8"); PrintWriter out = response.getWriter(); out.print(""); ou... 阅读全文
posted @ 2014-07-17 21:20 框框A 阅读(654) 评论(0) 推荐(0) 编辑
摘要: Ctrl+1 快速修复Ctrl+D 删除当前行Ctrl+/ 注释当前行,再按则取消注释 (对java代码有效)Ctrl+M 切换窗口的大小Ctrl+I 格式化激活的元素Format Active Elements。Ctrl+Shift+/ 自动注释代码Ctrl+Shift+\ 自动取消已经注释的代码... 阅读全文
posted @ 2014-07-17 21:07 框框A 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 兴趣 /> 钢琴 /> 书法 /> 英语 阅读全文
posted @ 2014-07-17 16:48 框框A 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-17 16:41 框框A 阅读(2781) 评论(0) 推荐(0) 编辑
摘要: 1、建立进行读写文件的java类//写文件public static void WriteFile(String filename,long counter) throws IOException {PrintWriter out=new PrintWriter(new FileWriter(fil... 阅读全文
posted @ 2014-07-17 16:25 框框A 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1、建立java类public class StudentManage {int pageSize = 3;//每页记录数 //获取记录总数 private int getTotalNum(String strWhere) throws SQLException { DbAccess dbAcce... 阅读全文
posted @ 2014-07-17 16:11 框框A 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1、在jsp页中放置一个checkbox控件//该checkbox放在循环体中,其中value必须获取主键的值。这样就可以有多个name值相同,value值不同的checkbox控件。提交时传过来的是字符串数组。2、接收的Servlet中进行处理private void process(HttpSe... 阅读全文
posted @ 2014-07-17 15:53 框框A 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 1、定义一个函数//参数top为触发全选的checkbox对象function selAll(top) {var items = document.getElementsByTagName("input");//获取所有的input标签对象for ( var i = 0; i 阅读全文
posted @ 2014-07-17 15:36 框框A 阅读(280) 评论(0) 推荐(0) 编辑
摘要: (非原创)在jsp页面中使用request.getRealPath("/")时出现下列警告:The method getRealPath(String) from the type ServletRequest is deprecated出现该警告,该方法已经不能使用了Deprecated. As ... 阅读全文
posted @ 2014-07-17 15:22 框框A 阅读(506) 评论(0) 推荐(0) 编辑