{
BookmarkForm bookmark = (BookmarkForm)form;
UserBean loginUser = super.getLoginUser(request, response);
String msg = null;
if(loginUser!=null){
BookmarkBean bean = new BookmarkBean();
bean.setParentId(bookmark.getParentId());
bean.setParentType(bookmark.getParentType());
bean.setOwner(loginUser);
bean.setSite(new SiteBean(bookmark.getSid()));
bean.setTitle(bookmark.getTitle());
try{
if(BookmarkDAO.save(bean))
msg = getMessage(request,null,"bookmark.created");
else
msg = getMessage(request,null,"error.bookmark.exists");