- 博客(11)
- 收藏
- 关注
原创 12 Things Every Programmer Should Know
12 Things Every Programmer Should Know Programmers are a subset of creators have the responsibility to shape the new world 1.Be passionate Love what you are doing Be creative Want to do it...
2011-05-16 18:30:37
129
原创 DateFormat
Java: import java.text.SimpleDateFormat; SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ActionScript: import mx.formatters.DateFormatter; private var dateFormatter...
2011-05-16 17:03:32
133
原创 HTTP常见错误代码
HTTP 状态代码 如果向您的服务器发出了某项请求要求显示您网站上的某个网页(例如,当用户通过浏览器访问您的网页或在 Googlebot 抓取该网页时),那么,您的服务器会返回 HTTP 状态代码以响应该请求。 此状态代码提供了有关请求状态的信息,且为 Googlebot 提供了有关您网站和请求的网页的信息。 一些常见的状态代码为: 200 - 服务器成功返回网页...
2011-05-15 18:23:32
150
原创 手动打包jar
jar cvf test.jar * 参考:http://developer.51cto.com/art/200509/2770.htm
2011-05-05 17:16:19
118
原创 JDK环境变量设置
我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_24CLASSPATH=.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\bin; Path=%JAVA_HOME%\bin; ...
2011-03-23 11:36:47
87
原创 OSCACHE J2EE缓存 缓存对象 缓存页面
OSCache资源下载http://www.opensymphony.com/oscache/ OSCache官方网站http://www.opensymphony.com/oscache/ 缓存对象 http://www.cnblogs.com/gaoyoubo/articles/1797873.html 错误信息:commons-logger.jar和你的log4j.jar版本...
2011-02-18 13:41:10
100
原创 SOME CHARACTER CAN NOT MAPPED USING "ISO-8859-1" CHARACTER ENCODINGECLIPSE中编码错误
Eclipse里写一个properties的文件时,里面要输入中文,居然出现发如下提示错误: characters cannot be mapped using “ISO-8859-1“ character encoding. Either change the encoding or remove the characters which are not supported by ...
2011-02-18 13:39:17
110
原创 struts+jsp分页页面代码
页面代码 <script type="text/javascript"> /** * 查询结果的页码跳转 * @author ozz */ function jumpTo(flag) { var currentPage = parseInt(document.getElementById("currentPage").innerHTML); ...
2011-01-19 11:23:59
133
原创 当前时间加1 和 SimpleDateFormat
Calendar c = Calendar.getInstance(); c.setTime(new Date()); //设置当前日期 c.add(Calendar.DATE, 1); //日期加1 Date date = c.getTime(); //结果 var d = new Date(new Date().getTime()+1000*60*60*24);alert(d...
2010-12-29 16:48:25
322
原创 ResourceBundle和properties 读取配置文件区别
java.util.ResourceBundle 和java.util.properties 读取配置文件区别 这两个类都是读取properties格式的文件的,而Properties同时还能用来写文件。 Properties的处理方式是将其作为一个映射表,而且这个类表示了一个持久的属性集,他是继承HashTable这个类。ResourceBundle本质上也是一个映射,但是它...
2010-12-29 13:51:11
136
原创 No result defined for action and result input - struts
这是struts2的一个拦截器报的错误,当你的form中的数据有问题,比如说<input type="text" name="receiverLoginID" value="<%=name%>"/>当 name值为NULL时,就出这个错了,所以你可以在当前页面加入以下标签<div style="color:red"> <s:f
2010-12-21 16:28:01
174
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人