protected ActionForward doDelete(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response, String s_cat_id)
throws Exception
{
CatalogForm lform = (CatalogForm)form;
ActionForward page = makeForward(mapping.findForward(CATALOGS), lform.getSid());
try{
int cat_id = Integer.parseInt(s_cat_id);
//���������Ƿ��б�־Ϊɾ�����ռǻ����Dzݸ�ȣ���������ʾ�û�����ɾ��
if(CatalogDAO.getDiaryCount(cat_id,true,0)>0){
String msg = getMessage(request,null,"error.catalog_not_empty");
return msgbox(mapping,form,request,response,msg,page.getPath());
}
CatalogDAO.delete(lform.getSid(), cat_id);
}catch(Exception e){
context().log("delete catalog #"+s_cat_id+" failed.", e);
}