Class DateConverter

All Implemented Interfaces:
TypeConverter

public class DateConverter extends StrutsTypeConverter
  • Constructor Details

    • DateConverter

      public DateConverter()
  • Method Details

    • setXWorkConverter

      public void setXWorkConverter(XWorkConverter fallbackConverter)
    • convertFromString

      public Object convertFromString(Map context, String[] values, Class toClass)
      Description copied from class: StrutsTypeConverter
      Converts one or more String values to the specified class.
      Specified by:
      convertFromString in class StrutsTypeConverter
      Parameters:
      context - the action context
      values - the String values to be converted, such as those submitted from an HTML form
      toClass - the class to convert to
      Returns:
      the converted object
    • convertToString

      public String convertToString(Map context, Object o)
      Description copied from class: StrutsTypeConverter
      Converts the specified object to a String.
      Specified by:
      convertToString in class StrutsTypeConverter
      Parameters:
      context - the action context
      o - the object to be converted
      Returns:
      the converted String