public String execute() {
        String actionResult = "";
        session = ActionContext.getContext().getSession();
        user = (User) session.get("USER");
        list = (new DataService()).getHistoryLocations(startDate, endDate, vregisteration_num);
        if (list != null) {

            // latitude = TrackData.getLatitudeList();
            //  longitude = TrackData.getLongitudeList();

            for (int i = 0; i < list.size(); i++) {
                if (getDummyLat().equalsIgnoreCase("")) {
                    setDummyLat(list.get(i).getLatitudeList());
                } else {
                    setDummyLat(getDummyLat() + ',' + list.get(i).getLatitudeList());
                }
                if (dummyLong.equalsIgnoreCase("")) {
                    dummyLong = list.get(i).getLongitudeList();
                } else {
                    dummyLong = dummyLong + ',' + list.get(i).getLongitudeList();
                }
                
                 if (location.equalsIgnoreCase("")) {
                    location = list.get(i).getLocation();
                } else {
                    location =location+'^'+list.get(i).getLocation();
                }

            }
            setLatitude(dummyLat);
            setLongitude(dummyLong);

            setCurrentUserName(user.getFname() + " " + user.getLname());
            if (user.getUprofile() == 1) {
                actionResult = "individual";
                setCurrentUserName(getCurrentUserName() + " [I]");
            } else {
                if (user.getUprofile() == 2) {
                    actionResult = "group";
                    setCurrentUserName(getCurrentUserName() + " [G]");
                } else {
                    if (user.getUprofile() == 3) {
                        actionResult = "admin";
                        setCurrentUserName(getCurrentUserName() + " [A]");
                    }
                }
            }
        } else {
            actionResult = "error";
        }
        return actionResult;
    }