I wanted to declare an action in such a way that I could pass String array of static parameter. I tried the below code:
AFAIK static parameters are converted to String, that why various interceptors (e.g. FileUploadInterceptor) use static method commaDelimitedStringToSet of TextParseUtil to convert String to Set. You can call this method inside setter for your property.
public void setNames(String name) {
mNames = TextParseUtil.commaDelimitedStringToSet(name);
}