第一次访问action时提交了查询的起始日期,第二次访问action实际上是点击下一页时产生的,但此时因为没提交起始日期,所以action里的没有日期信息。小弟我用了一个笨拙的办法,就是第一次访问是将日期保持在session中,以后再访问时从session中取:                 if(year1!=0){
session.setAttribute("year1", year1);
session.setAttribute("month1", month1);
session.setAttribute("day1", day1);
session.setAttribute("year2", year2);
session.setAttribute("month2", month2);
session.setAttribute("day2", day2);
}
year1= Integer.parseInt(session.getAttribute("year1").toString());
month1= Integer.parseInt(session.getAttribute("month1").toString());
day1= Integer.parseInt(session.getAttribute("day1").toString());
year2= Integer.parseInt(session.getAttribute("year2").toString());
month2= Integer.parseInt(session.getAttribute("month2").toString());
day2= Integer.parseInt(session.getAttribute("day2").toString());
    但感觉这样做不好,请问各位有什么好的处理方法,希望指教一二。