欢迎访问我的个人网站==》 jiashubing.cn
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 40 下一页
摘要: 测试staff数据表连接到maeclipse 在staff中插入一行 阅读全文
posted @ 2014-04-22 11:39 贾树丙 阅读(305) 评论(0) 推荐(0)
摘要: 我的MainActivity.java部分代码 阅读全文
posted @ 2014-04-21 11:27 贾树丙 阅读(3370) 评论(0) 推荐(0)
摘要: 刚学的时候总是各种错误,解决方法也无厘头的很将UserDAO里面的的save方法修改try { getSession().save(transientInstance); log.debug("save successful"); } 改为try { Session session=Hiber... 阅读全文
posted @ 2014-04-20 21:28 贾树丙 阅读(273) 评论(0) 推荐(0)
摘要: 1.在MyEclipse Datebase Explorer 页面中新创建一个连接数据库“DB Browser”的XX,如起名“register”2.新建项目-》右键Properties-》Java Build Path-》Libraries-》Add External JARs 选中mysal的j 阅读全文
posted @ 2014-04-17 10:59 贾树丙 阅读(159) 评论(0) 推荐(0)
摘要: 注意一下语句的写法(在login.jsp中的action)在 struts.xml中 web.xml /* login.jsp 阅读全文
posted @ 2014-04-17 10:31 贾树丙 阅读(221) 评论(0) 推荐(0)
摘要: 我是用了右键-Add Struts.. 所以,不应该在WebRoot-》WEB-INF-》lib中加入5个基本包了。。。 阅读全文
posted @ 2014-04-17 09:47 贾树丙 阅读(201) 评论(0) 推荐(0)
摘要: 网上试了很多种方法都不对,结果老师两下点出来了我的改正方法是: 将WebRoot/WEB-INF/web.xml中的/* 改为*.do 然后再网页中输入完整的路径 "项目/index.jsp" 就不会报错了 最后在把“*.do ”该成“/*”据说是加了struts之后 默认查找路径是 "项目\... 阅读全文
posted @ 2014-04-17 09:40 贾树丙 阅读(266) 评论(0) 推荐(0)
摘要: 1.独立运行的tomcat.exe没有关闭,关闭tomcat图标并结束掉tomcat进程。(我是这个原因,在开始菜单里找到tomcat,然后stop它)2.安装了其他的软件占用了8080端口,tomcat安装默认的端口是8080,解决方案一,更改tomcat的端口,用editplus或者写字板打开c... 阅读全文
posted @ 2014-04-17 09:33 贾树丙 阅读(408) 评论(0) 推荐(0)
摘要: package 元素的所有属性及对应功能: 例子: 假如我有以下的配置段落 <struts><package name="p1" extends="struts-default"> <action name="login" class="com.example.action.Login"> <res 阅读全文
posted @ 2014-04-16 22:55 贾树丙 阅读(283) 评论(0) 推荐(0)
摘要: 这是struts-2.1.6版本的一个BUG,原因是tomcat安装目录包含了空格 。避免这个错误的方法可以设置devmode为false: 或者重装tomcat,保证tomcat安装目录不包含空格。也可以使用其他版本的struts试试。 阅读全文
posted @ 2014-04-15 16:21 贾树丙 阅读(445) 评论(0) 推荐(0)
摘要: Ctrl+1 快速修复(最经典的快捷键,就不用多说了) Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加) Ctrl+↑ 上滚行 Ctrl+↓ 下滚行Alt+方向键 这也是个节省时间的法宝。这个组合将当前行的内容往上或 阅读全文
posted @ 2014-03-29 12:27 贾树丙 阅读(280) 评论(2) 推荐(0)
摘要: Square IceDescriptionSquare Ice is a two-dimensional arrangement of water molecules H2O, with oxygen at the vertices of a square lattice and one hydrogen atom between each pair of adjacent oxygen atoms. The hydrogen atoms must stick out on the left and right sides but are not allowed to stick out th 阅读全文
posted @ 2014-03-26 13:14 贾树丙 阅读(372) 评论(0) 推荐(0)
摘要: Digital RootsProblem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. 阅读全文
posted @ 2014-03-24 18:08 贾树丙 阅读(257) 评论(0) 推荐(0)
摘要: Super Jumping! Jumping! Jumping!Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now.The game can be played by two or more than two players. It consi 阅读全文
posted @ 2014-03-24 18:05 贾树丙 阅读(340) 评论(0) 推荐(0)
摘要: Common SubsequenceProblem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a strictly increasing sequence of indices of X such that for all j = 1,2,...,k,... 阅读全文
posted @ 2014-03-24 18:00 贾树丙 阅读(304) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 40 下一页