@Override
    public String execute() throws Exception {

        try {



            Map session = ActionContext.getContext().getSession();
            setUser((User) session.get("User"));
            email = getUser().getEmailId();
            UserDetails used = new UserDetails(email, getUser(), fname);

            used.setLastName(lname);
            used.setDob(getDob());
            used.setAddressLine1(addline1);
            used.setCountry(ctry);
            used.setStateRegion(storeg);
            used.setCity(city);
            used.setPostalCode(postcode);



            myDao.getDbsession().saveOrUpdate(used);

            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);
            addActionMessage("User  " + user.getEmailId() + " Information Successfully Saved");
            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";
        }



    }