admin.item/ItemDelete.java ( 삭제 )
페이지 정보
본문
package admin.item;
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.ItemDAO;
@WebServlet("/admin/item/delete")
public class ItemDelete extends HttpServlet {
private static final long serialVersionUID = 1L;
public ItemDelete() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
int it_uid = Integer.parseInt(request.getParameter("it_uid"));
ItemDAO dao = new ItemDAO();
dao.deleteItem(it_uid);
response.sendRedirect("list");
}
}
- 이전글admin/item/modify.jsp 23.03.25
- 다음글dao/ItemDAO.java 23.03.25
댓글목록
등록된 댓글이 없습니다.