2014 年文章归档
共 2 篇文章
java
今天有时间写一个计算两个日期之间有多少个日期,在这儿献丑了。呵呵,不说废话了,请看源码: //获取某段日期之间的日期集合 public static List<String> getDateStringListByBetweenTwoDates(String beginDate,String endDate){ List<String> dateList = new ArrayList<String>(); int maxRound = 366;//hardcode int round = 0; String nextDate = beginDate; dateList.add(nextDa…
2014-12-26 15:01 · 今天有时间写一个计算两个日期之间有多少个日期
struts
struts2获取request 的三中方法浅谈 建议通过ServletRequestAware 通过IOC注入request。 1.通过Map方式 Map request =(Map) ActionContext.getContext().get("request"); List list =service.find(); request.put("list",list); 2.通过ServletActionContext HttpServletActionRequest request = ServletActionContext.getRequest(); request.setAtt…
2014-12-25 14:50