public String deleteProductCategory() { HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST); CommonController.deleteObject( Integer.parseInt(request.getParameter("ProductCategoryId")), ProductCategoryMasterTB.class); return "success"; }
public String deleteAboutDescription() { try { HttpServletRequest request = ServletActionContext.getRequest(); int aboutId = Integer.parseInt(request.getParameter("aboutId")); CommonController.deleteObject(aboutId, AboutTB.class); } catch (Exception e) { e.printStackTrace(); } return "success"; }