请求解释request.setAttribute(四个参数)
public void findVoteInfo(HttpServletRequest request){
NewsCenterDAO dao = NewsCenterDAO.getNewsCenterDAO();
StringBuffer sql = new StringBuffer("from WebVote order by createDate desc");
Object[] obj = new Object[0];
request.setAttribute(PageUtil.DATANAME, dao.find(PageUtil.getBaseParam(request), sql.toString(), obj));
}
------解决方案--------------------
OH,兄弟,请你看仔细一点,这是四个参数?再说了request.setAttribute有4个参数的方法???
request.setAttribute(PageUtil.DATANAME, dao.find(PageUtil.getBaseParam(request), sql.toString(), obj));
这明明是两个好不好