@Override
    public String execute() throws Exception {
        try {
            Map session = ActionContext.getContext().getSession();
            setUser((User) session.get("User"));
            
            
            
            Publish sitepublish = new Publish(getUser(), siteurl, catgry);
            
            sitepublish.setBgColor(bgcolor);
            sitepublish.setTextColor(txtcolor);
            sitepublish.setDescription(desc);
            sitepublish.setSiteName(sitename);
            myDao.getDbsession().saveOrUpdate(sitepublish);
            
            
            sitelist = (List<Publish>) myDao.getDbsession().createQuery("from Publish").list();
            Criteria crit1 = myDao.getDbsession().createCriteria(Publish.class);
            crit1.add(Restrictions.like("user", getUser()));
            crit1.setMaxResults(20);
            
            sitelist = (List<Publish>) crit1.list();
            addActionMessage("Site" + sitename + " Successfully Created");
            return "success";
        } catch (HibernateException e) {
            addActionError("Server  Error Please Recheck All Fields ");
            e.printStackTrace();
            return "error";
        } catch (NullPointerException ne) {

            addActionError("Server  Error Please Recheck All Fields ");
            ne.printStackTrace();
            return "error";
        } catch (Exception e) {

            addActionError("Server  Error Please Recheck All Fields ");
            e.printStackTrace();
            return "error";
        }
        
        
    }