Java资料
issac_czy
这个作者很懒,什么都没留下…
展开
-
自定义标签tag文件中,rtexprvalue属性的作用
rtexprvalue『 Run-time Expression Value』 它用于表示是否能够利用JSP表白式:在使用标签时能不能使用表达式来动态指定数据 。true是可以,false是不可以。tag:jsp:request.setAttribute("cols","moduleName,moduleAlias,statusStr,permi原创 2013-04-28 10:44:36 · 1572 阅读 · 0 评论 -
在java中实现日期类型和字符串类型的转换大全(Date String Timestamp Datetime)
用Timestamp来记录日期时间还是很方便的,但有时候显示的时候是不需要小数位后面的毫秒的,这样就需要在转换为String时重新定义格式。Timestamp转化为String:SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒Timestamp now = new Times转载 2013-06-19 17:14:27 · 696 阅读 · 0 评论 -
innerHTML、innerText 和 outerHTML 的区别
eg:innerHTML)}">test result:test==============================================================<a onclick="function(){alert(this.innerText)}">test result:test=======原创 2013-06-24 11:19:29 · 731 阅读 · 0 评论 -
Eclipse:some characters cannot be mapped using "ISO-8859-1" charater encoding
Eclilpsle 编辑js文件时出现一下错误的解决方案:Some characters cannot be mapped using "ISO-8859-1" charater encoding.Either change the encoding or remove the characters which are not supported by the "ISO-8859-1"原创 2013-07-15 09:54:23 · 844 阅读 · 0 评论 -
forward和redirect的区别
SetCookie、GetCookie自行设定有效日期:Response.Cookies(CookieName).Expires=#日期# 页面转发区别:在Servlet中两种实现: forward方式:request.getRequestDispatcher("/somePage.jsp").forward转载 2013-07-02 17:48:20 · 416 阅读 · 0 评论