예제 #1
0
 public String delete() {
   String id = getRequest().getParameter("id");
   if (id != null) {
     noteSendManager.removeById(Integer.parseInt(id));
   }
   showMessage2("删除成功!", "/pages/NoteSend/list.do");
   return LIST_ACTION;
 }
예제 #2
0
 /** 删除对象 */
 public String delBatch() {
   for (int i = 0; i < items.length; i++) {
     Hashtable params = HttpUtils.parseQueryString(items[i]);
     java.lang.Integer id = new java.lang.Integer((String) params.get("id"));
     noteSendManager.removeById(id);
   }
   Flash.current().success(DELETE_SUCCESS);
   return LIST_ACTION;
 }