@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        String action = request.getParameter("action");        
        //由context parameter取得JDBC需要的資訊
        ServletContext sc = this.getServletConfig().getServletContext();        
        String dbUrl = sc.getInitParameter("ottzDBurl");
        String ottzUser = sc.getInitParameter("ottzUser");
        String ottzPassword = sc.getInitParameter("ottzPassword");
        String jdbcDriver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
        
        if("deleteFilterTrain".equals(action)){
            String dataKey = request.getParameter("id");
            
            FilterDAO daoFT_delete = null;
            String sResultDelete ="";
            try{
                daoFT_delete = new FilterDAO(jdbcDriver, dbUrl,ottzUser,ottzPassword);
                sResultDelete = daoFT_delete.deleteTraining(dataKey);
            }catch(Exception e){
                sResultDelete = "取消刪除: " + e;
            }finally{
                if(daoFT_delete != null) try {
                    daoFT_delete.closeConn();
                } catch (SQLException ex) {
                    throw new ServletException("關閉sql connection階段發生例外:<br/> " + ex);
                }
            }            
            request.setAttribute("ResultInsert", sResultDelete);
            request.getRequestDispatcher("/WEB-INF/FilterPages/training/ShowDdTradeResult.jsp").forward(request, response);
        }	
    }