@Override
    public String execute() throws Exception {

        try {

            Map session = ActionContext.getContext().getSession();
            User user = (User) session.get("User");

            Campaign camp;

            //  camp=(Campaign) session.get("campa");
            //   Long camp1id=camp.getCampaignId();
            lc = (Long) Long.parseLong(campaid);
            System.out.println("campaignlong id is" + getLc());
            
            camp=(Campaign)myDao.getDbsession().get(Campaign.class, lc);

            camp.setCampaignId(Long.parseLong(campaid));
            camp.setCampaignName(campaignname);
            camp.setStartDate(startdate);
            camp.setEndDate(enddate);
            camp.setDialyBudget(dailybdgt);
            camp.setDeliveryMethod(deliverytype);
           // camp.setPromoType(promotype);
            camp.setNote(note);
            getMyDao().getDbsession().update(camp);

            setCamplist((List<Campaign>) myDao.getDbsession().createQuery("from Campaign").list());
            Criteria crit = myDao.getDbsession().createCriteria(Campaign.class);
            crit.add(Restrictions.like("user", user));
            crit.setMaxResults(20);
            setCamplist((List<Campaign>) crit.list());
            addActionMessage("Campaign " + camp.getCampaignName() + " Successfully Updated");
            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";
        }


    }