String phonename = request.getParameter("phonename"); String version = request.getParameter("version"); String price = request.getParameter("price"); String begin ; String end ; //第一次传值时为空串 if(phonename==null){ phonename = ""; } if(version==null){ version = ""; } /*if(price==null){ price = "全部时间"; } if("全部时间".equals(price)){ begin = "0"; end = "0"; }else{ begin = request.getParameter("begin"); end = request.getParameter("end"); }*/ /*int begin2 = Integer.parseInt(begin); int end2 = Integer.parseInt(end);*/ PhoneService phoneService = new PhoneServiceImpl(); //List<Phone> list = phoneService.getPhoneList(phonename,version,begin2,end2); List<Phone> phonelist = phoneService.getPhoneList(phonename,version); // String begin3 = begin2+""; // String end3 = end2+""; request.setAttribute("phoneList", phonelist); request.setAttribute("phoneName", phonename); request.setAttribute("version", version); //request.setAttribute("begin", begin3); //request.setAttribute("end", end3); //request.setAttribute("price", price); 此行为86行 request.getRequestDispatcher("phoneinfo_query.jsp").forward(request, response);
慕设计2395807
緦唸
相关分类