admin.category/CategoryDelete.java
페이지 정보
본문
package admin.category;
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.CategoryDAO;
@WebServlet("/admin/category/delete")
public class CategoryDelete extends HttpServlet {
private static final long serialVersionUID = 1L;
public CategoryDelete() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String ca_id = request.getParameter("ca_id");
CategoryDAO dao = new CategoryDAO();
dao.oneDelete(ca_id);
response.sendRedirect("list");
}
}
- 이전글● admin - 분류 관리 ( 디렉토리 구조 , 테이블 생성 ) 23.03.19
- 다음글admin.category/CategoryList.java 23.03.19
댓글목록
등록된 댓글이 없습니다.