admin/member/View.java
페이지 정보
본문
package admin.member;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.AdminMemberDAO;
import model.Member;
@WebServlet("/admin/member/view")
public class View extends HttpServlet {
private static final long serialVersionUID = 1L;
public View() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
AdminMemberDAO dao = new AdminMemberDAO();
Member member = dao.oneMember(id);
request.setAttribute("m", member);
RequestDispatcher dis = request.getRequestDispatcher("view.jsp");
dis.forward(request, response);
}
}
- 이전글admin/member/List.java 23.03.18
- 다음글dao/AdminMemberDAO.java 23.03.18
댓글목록
등록된 댓글이 없습니다.