@Override
     public String execute() throws Exception {
      
         
           try{
               Map session =ActionContext.getContext().getSession();
             setUser((User) session.get("User"));
            
         
          
                setSitelist((List<Publish>) getMyDao().getDbsession().createQuery("from Publish").list());
                Criteria crit1 = getMyDao().getDbsession().createCriteria(Publish.class);
                crit1.add(Restrictions.like("user", getUser()));
                crit1.setMaxResults(20);
           
                setSitelist((List<Publish>) crit1.list());
            
                 
                  setCamplist((List<Campaign>) getMyDao().getDbsession().createQuery("from Campaign").list());
                Criteria crit = getMyDao().getDbsession().createCriteria(Campaign.class);
                crit.add(Restrictions.like("user", getUser()));
                crit.setMaxResults(20);
                 setCamplist((List<Campaign>) crit.list());
                
                  setUselist((List<UserDetails>) myDao.getDbsession().createQuery("from UserDetails").list());
            Criteria ucri=myDao.getDbsession().createCriteria(UserDetails.class);
            ucri.add(Restrictions.like("user", getUser()));
            ucri.setMaxResults(1);
            return "success";
                 
           }
         catch (HibernateException e) {
            addActionError("Server  Error Please Try Again ");
            e.printStackTrace();
            return "error";
        } catch (NullPointerException ne) {

            addActionError("Server  Error Please Try Again ");
            ne.printStackTrace();
            return "error";
        } catch (Exception e) {

            addActionError("Server  Error Please Try Again ");
            e.printStackTrace();
            return "error";
        }
      
       }