msgs.add("name", new ActionMessage("error.illegal_glossary"));
} else if (DLOGSecurityManager.IllegalGlossary.existIllegalWord(album.getDesc())){
msgs.add("desc", new ActionMessage("error.illegal_glossary"));
} else {
SiteBean site = super.getSiteBean(request);
AlbumBean abean = new AlbumBean();
abean.setName(super.autoFiltrate(site, album.getName()));
if (StringUtils.isNotEmpty(album.getDesc())){
String desc = super.autoFiltrate(site, album.getDesc());
abean.setDesc(super.filterScriptAndStyle(desc));
}
abean.setType(album.getType());
if (StringUtils.isNotEmpty(album.getVerifyCode()))
abean.setVerifyCode(album.getVerifyCode());
abean.setSite(site);
abean.setCreateTime(new Date());
try {
//1: ֮ǰ; 2: ֮��; 3: ֮��
if(album.getDirection()==3)
album.setParent(album.getId());
if(album.getCatalog()>0)
abean.setCatalog(new TypeBean(album.getCatalog()));
AlbumDAO.create(album.getParent(), abean, album.getId(), album
.getDirection());
new_album_id = abean.getId();
} catch (CapacityExceedException e) {
msgs.add("album",
new ActionMessage("error.album_reach_max_size",
new Integer(e.getCount())));
} catch (Exception e) {