}
if(msgform.getReceiverId()==0 || msgform.getSid()==0){
msgs.add("message", new ActionMessage("error.param"));
break;
}
UserBean loginUser = super.getLoginUser(request, response);
if(loginUser==null){
msgs.add("message", new ActionMessage("error.user_not_login"));
break;
}
else if(loginUser.getStatus()!=UserBean.STATUS_NORMAL){
msgs.add("message", new ActionMessage("error.user_not_available"));
break;
}
else if(DLOGSecurityManager.IllegalGlossary.existIllegalWord(msgform.getContent())){
msgs.add("message", new ActionMessage("error.illegal_glossary"));
break;
}
UserBean receiver = UserDAO.getUserByID(msgform.getReceiverId());
if(receiver==null || receiver.getStatus()!=UserBean.STATUS_NORMAL){
msgs.add("message", new ActionMessage("error.user_not_available"));
break;
}
//�жϽ������Ƿ��Ѿ���������Ϊ������
if(UserDAO.isUserInBlackList(receiver.getId(), loginUser.getId())){
msgs.add("message", new ActionMessage("message.sent"));
break;
}
MessageBean msgbean = new MessageBean();
String content = StringUtils.abbreviate(super.autoFiltrate(null,