admin.item/ItemWriteCategory.java ( category - .ajax() 처리 ) - 수정
페이지 정보
본문
package admin.item;
import java.io.IOException;
import java.util.ArrayList;
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.ItemDAO;
import model.Category;
@WebServlet("/admin/item/category_ok")
public class ItemWriteCategory extends HttpServlet {
private static final long serialVersionUID = 1L;
public ItemWriteCategory() {
super();
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String ca_id = request.getParameter("ca_id");
String ca_id2 = request.getParameter("ca_id2");
ItemDAO dao = new ItemDAO();
ArrayList<Category> v = dao.getCategory2(ca_id); //카테고리(대분류)를 이용해 중분류 추출
request.setAttribute("v", v);
request.setAttribute("ca_id2", ca_id2);
RequestDispatcher dis = request.getRequestDispatcher("cate2.jsp");
dis.forward(request, response);
}
}
- 이전글▣ admin/item/view.jsp - ▶▶ 장바구니 , 바로구매 추가 ◀◀ 23.03.24
- 다음글admin/item/cate2.jsp ( category - 중분류 처리 ) 23.03.23
댓글목록
등록된 댓글이 없습니다.