public String execute() throws Exception {
    lineListElement = lineListService.getLineListElement(lineListElementId);
    System.out.println("datatype = " + lineListElement.getDataType());
    memberCount = lineListElement.getLineListElementOptions().size();
    System.out.println("Member Count = " + memberCount);

    return SUCCESS;
  }
  // @SuppressWarnings( "unchecked" )
  public String execute() {
    lineListOptions = new ArrayList<LineListOption>(lineListService.getAllLineListOptions());

    Collections.sort(lineListOptions, new LineListOptionNameComparator());

    // displayPropertyHandler.handle( lineListOptions );

    return SUCCESS;
  }
  // -------------------------------------------------------------------------
  // Action implementation
  // -------------------------------------------------------------------------
  public String execute() {
    if (lineListService == null) {
      System.out.println("linelist service is null");
      lineListService = new DefaultLineListService();
    } else {
      System.out.println("linelist service is not null");
      if (id == null) {
        System.out.println("id is null");
      }
    }
    lineListOption = lineListService.getLineListOption(id);

    return SUCCESS;
  }
  public String execute() throws Exception {
    // ---------------------------------------------------------------------
    // Name
    // ---------------------------------------------------------------------

    // System.out.println("Validating ID : \t" + lineListElementId);
    // System.out.println("Validatied Name : \t" + name);

    if (name == null) {
      message = i18n.getString("specify_name");

      return INPUT;
    } else {
      name = name.trim();

      if (name.length() == 0) {
        message = i18n.getString("specify_name");

        return INPUT;
      }

      LineListElement match = lineListService.getLineListElementByName(name);

      if (match != null && (lineListElementId == null || match.getId() != lineListElementId)) {
        message = i18n.getString("duplicate_names");

        return INPUT;
      }
    }

    // ---------------------------------------------------------------------
    // Short name
    // ---------------------------------------------------------------------

    if (shortName == null) {
      message = i18n.getString("specify_short_name");

      return INPUT;
    } else {
      shortName = shortName.trim();

      if (shortName.length() == 0) {
        message = i18n.getString("specify_short_name");

        return INPUT;
      }
      if (shortName.length() > 25) {
        message = "Short name too long, please give 25 characters ";

        return INPUT;
      }

      LineListElement match = lineListService.getLineListElementByShortName(shortName);

      if (match != null && (lineListElementId == null || match.getId() != lineListElementId)) {
        message = i18n.getString("short_name_in_use");

        return INPUT;
      }
    }

    // ---------------------------------------------------------------------
    // Data Type
    // ---------------------------------------------------------------------

    if (dataType == null) {
      message = "Please Select Data Type";

      return INPUT;
    } else {
      dataType = dataType.trim();

      if (dataType.length() == 0) {
        message = "Please Select Data Type";

        return INPUT;
      }
    }

    // ---------------------------------------------------------------------
    // Presentation Type
    // ---------------------------------------------------------------------

    if (presentationType == null) {
      message = "Please Select Presentation Type";

      return INPUT;
    } else {
      presentationType = presentationType.trim();

      if (presentationType.length() == 0) {
        message = "Please Select Presentation Type";

        return INPUT;
      }
    }

    return SUCCESS;
  }