admin.cart/CartDelete.java
페이지 정보
본문
package admin.cart;
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 dao.CartDAO;
@WebServlet("/admin/cart/delete")
public class CartDelete extends HttpServlet {
private static final long serialVersionUID = 1L;
public CartDelete() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
int ct_uid = Integer.parseInt(request.getParameter("ct_uid"));
CartDAO dao = new CartDAO();
dao.deleteOne(ct_uid);
response.sendRedirect("list");
}
}
- 이전글model.Cart.java 23.03.24
- 다음글admin.cart/CartList.java 23.03.24
댓글목록
등록된 댓글이 없습니다.