//��������
if(isUserInBlackList(site, loginUser)){
msgs.add("message", new ActionMessage("error.user_in_blacklist"));
break;
}
GuestBookBean msgbean = new GuestBookBean();
String content = super.autoFiltrate(site,msgform.getContent());
if(content.length()>MAX_GB_COUNT_LENGTH)
content = content.substring(0, MAX_GB_COUNT_LENGTH);
msgbean.setContent(super.filterScriptAndStyle(content));
msgbean.setClient(new ClientInfo(request, 0));
msgbean.setUser(loginUser);
msgbean.setSiteId(site.getId());
try{
GuestBookDAO.createMsg(msgbean);
}catch(HibernateException e){
context().log("undelete diary failed.", e);
msgs.add("message", new ActionMessage("error.database", e.getMessage()));