还是不喜欢,一个请求写一个action那也太烦了最好用spring的mvc也可以用像DispatchAction一样的action
昂昂用的是spring mvc
Spring中有个MultiActionController
public class HomeController extends MultiActionController {
public List list;
//查询所有数据
public ModelAndView TestOne(HttpServletRequest req,
HttpServletResponse resp) throws Exception {
list = serviceimpl.getQueryAll();
return new ModelAndView("home","list",list);
}
能看懂没问题吧 给分....