摘要: DateTimestart = new DateTime();DateTimeend = new DateTime();Period p = new Period(start,end,PeriodType.days());最后一个参数如果不写的话,下面的返回值将会是错误的。int day = p.getDays();period类不明白原理。 阅读全文
posted @ 2012-02-24 11:09 刘振明 阅读(6378) 评论(1) 推荐(0) 编辑
摘要: Struts2的property标签可以把“<”、“>”、“&”等等自动转成类似&xxxx;的HTML转意表示,在显示一段带HTML格式的文本时这功能很讨厌,可以设property标签的escape="false",即可关闭自动转码操作。 阅读全文
posted @ 2012-02-24 09:36 刘振明 阅读(1558) 评论(0) 推荐(0) 编辑