展开全部
servlet:
String cond = "select * from user_maxiao ";
List list = (new UserInfoDAO()).getUser(cond);
request.setAttribute("list", list);
request.setAttribute("user", user);
request.getRequestDispatcher("/person/personlist.jsp").forward(
request, response);
UserInfoDAO:
public List getUser(String cond) {
List list = new ArrayList();
........
return list;
}
转载:https://zhidao.baidu.com/question/549836670.html
String cond = "select * from user_maxiao ";
List list = (new UserInfoDAO()).getUser(cond);
request.setAttribute("list", list);
request.setAttribute("user", user);
request.getRequestDispatcher("/person/personlist.jsp").forward(
request, response);
UserInfoDAO:
public List getUser(String cond) {
List list = new ArrayList();
........
return list;
}
转载:https://zhidao.baidu.com/question/549836670.html
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询