For some reason when I try to convert a html textfield value to a
String[], the "MyClass-conversion.properties" file ignores the
conversion.  In this specific example, I am trying to convert a
textfield that may have comma seperated values into a String[] of
these values.  For testing I changed the variable in question to a
String type (no []) and the conversion ran.  Am I missing something?
Does Struts conversion ignore it if the resulting type is a String[]?

Code snippits:

[HTML: form field tha may contain commas to seperate]
<s:textfield name="searchCriteria.test1" />

[SearchAction-conversion.properties: this conversion is to seperate
the comma seperated values into a new String[] variable]
searchCriteria.test1=com.afs.web.converter.MyCommaListConverter
searchCriteria.listPriceFrom=com.afs.web.converter.MyCurrencyConverter

** MyCommaListConverter runs when test1 is of type String.  It does
not when test1 is of type String[].  MyCurrencyConverter always works
as listPriceFrom is of type Integer.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to