admin.member/Modify2.java
페이지 정보
본문
package admin.member;
import java.io.IOException;
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 org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import dao.AdminMemberDAO;
import model.Member;
@WebServlet("/admin/member2/modify")
public class Modify2 extends HttpServlet {
private static final long serialVersionUID = 1L;
public Modify2() {
super();
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
Member m = new Member();
m.setId(request.getParameter("id"));
m.setPass(request.getParameter("pass"));
m.setName(request.getParameter("name"));
m.setAge(Integer.parseInt(request.getParameter("age")));
m.setGender(request.getParameter("gender"));
m.setEmail(request.getParameter("email"));
m.setMemo(request.getParameter("memo"));
m.setLevel(request.getParameter("level"));
AdminMemberDAO dao = new AdminMemberDAO();
dao.updateMember2(m);
System.out.println(m);
}
}
- 이전글admin.member/List2.java 23.04.01
- 다음글dao/AdminMemberDAO.java 23.04.01
댓글목록
등록된 댓글이 없습니다.