Page 220 - 3-1
P. 220
<%@page import="MDP.ToolDAO"%>
<%@page import="MDP.ToolVo"%>
<%@page import="java.lang.Integer"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String b = request.getParameter("bno");
String toolname = request.getParameter("toolname");
String count = request.getParameter("count");
if(b != null){
int bno = Integer.parseInt(b);
//System.out.println(bno);
ToolDAO dao = new ToolDAO();
ToolVo vo = new ToolVo();
vo.setBno(bno);
vo.setToolname(toolname);
vo.setCount(Integer.parseInt(count));
dao.modifyData(vo);
response.sendRedirect("list.jsp");
}else{
response.sendRedirect("list.jsp");
}
%>
- 220 -