public void doPost ( HttpServletRequest req, HttpServletResponse res ) 	throws IOException {
ChangeItem changeItem = new ChangeItem ( ) ;
res.setContentType ( "text/html ;charset = euc-kr" ) ;
PrintWriter out = res.getWriter ( ) ;
String bname = "" ;
String btitle = "" ;
String bemail = "" ;
String bcontent = "" ;
String bpassword = "" ;
Date bdate = new Date ( ) ;
String url = "jdbc:oracle:thin:@localhost:1521:etri" ;
Connection con ;
Statement stmt ;
String SQLParam = req.getParameter ( "num" ) ;
bpassword = req.getParameter ( "password" ) ;
page = req.getParameter ( "page" ) ;
if ( page == null ) page = "0" ;
try {
changeItem.loadDriver ( ) ;
}
catch ( ClassNotFoundException e ) {
System.err.print ( "ClassNotFoundException:" ) ;
System.err.println ( e.getMessage ( ) ) ;
}
catch ( Exception e ) {
System.err.println ( e ) ;
}
try {
BoardData data = changeItem.change ( SQLParam, bpassword ) ;
out.println ( "<html> " ) ;
out.println ( " <body background = /images/back.gif> " ) ;
out.println ( " <center> " ) ;
bdate = data.date ;
btitle = data.title ;
bname = data.name == null? "":data.name ;
bemail = data.email == null? "":data.email ;
bcontent = data.content == null? "":data.content ;
bpassword = data.password == null? "":data.password ;
out.println ( " <br><img src = \"/images/boardEditTitle.gif\" width = \"273\" height = \"34\"> <br><br> " ) ;
out.println ( " <form action = BoardUpdate_db method = post> " ) ;
out.println ( " <input type = hidden name = num value = "+SQLParam+">" ) ;
out.println ( " <table border = 0 cellspacing = 1 cellpadding = 5 width = 600 style = \"font-size:12px\" bgcolor = #995F0F>" ) ;
out.println ( " <tr><th bgcolor = #D3BB9A width = \"100\">  :</th><td bgcolor = #FFFFFF>" + bname + "</td></td>" ) ;
out.println ( " <tr><th bgcolor = #D3BB9A>йȣ :</th> " ) ;
out.println ( " <td width = 64 bgcolor = #FFFFFF><input type = text name = password value = "+bpassword+" size = 7 maxlength = 5></td></tr>" ) ;
out.println ( " <tr><th bgcolor = #D3BB9A>E-mail :</th> " ) ;
out.println ( " <td bgcolor = #FFFFFF><input type = text name = email value = \""+bemail+"\" size = 44 maxlength = 20></td></tr>" ) ;
out.println ( " <tr><th bgcolor = #D3BB9A>  :</th> " ) ;
out.println ( " <td bgcolor = #FFFFFF><input type = text name = title value = "+btitle+" size = 44 maxlength = 40> </td></tr> " ) ;
out.println ( " <tr><th bgcolor = #D3BB9A>  :</th> <td bgcolor = #FFFFFF><textarea name = content rows = 10 cols = 60>"+bcontent+"</textarea></td></tr> " ) ;
out.println ( " <tr bgcolor = #F3EBE2><td colspan = 2 align = center ><input type = submit value = > " ) ;
out.println ( " <input type = reset value = ٽþ></td></tr> " ) ;
out.println ( " </table> " ) ;
out.println ( " </form> " ) ;
out.println ( " </center> " ) ;
}
catch ( SQLException ex ) {
out.println ( "<script>alert ( 'йȣ  ʽϴ.   ϴ.' ) ;" ) ;
out.println ( "self.location = 'BoardList_db'</script>" ) ;
System.err.println ( "SQLException:" + ex.getMessage ( ) ) ;
}
out.println ( " </body> " ) ;
out.println ( "</html> " ) ;
}
