Annotation Interface StringCSVConversion


@Documented @Inherited @Target(FIELD) @Retention(RUNTIME) public @interface StringCSVConversion

Defines a form field (whether on a Struts Action or model of ModelDriven Struts Action) should be parsed from comma separated values to a recipient field of some collection of String. Different separators can be set instead of comma. No error message can happen.

Other parameters

parsedFieldName
If not empty string, name of field to contain parsed value. Defaults to 'parsed' plus capitalised field name, such as 'parsedLimit'.
separator
Separator between text. Defaults to ','.
trim
Whether to trim whitespace from each entry using the trim function. Defaults to true.
  • Element Details

    • parsedFieldName

      String parsedFieldName
      Default:
      ""
    • separator

      String separator
      Default:
      ","
    • trim

      boolean trim
      Default:
      true