Raghu wrote:
Hi, I am facing problem in handling java.sql.Blob datatype.
I have Rich Text Editor FCKEditor in my jsp form and I have defined
java.sql.Blob setter/getter method in my action class but struts2 is not
able to set content of FCKEditor into java.sql.Blob settler method. I am
getting below error...Looks like it datatype conversion issue from String to
Blob type.
Any idea how should I handle it?
Write a java.sql.Blob type converter? (Personally I wouldn't do that and
instead convert it "by hand", or convert it in the service itself--it's
a rare occasion I'd want to tie an action to SQL like that.)
According to the documentation [1] the data types supported
out-of-the-box are:
* String
* boolean / Boolean
* char / Character
* int / Integer, float / Float, long / Long, double / Double
* dates - uses the SHORT format for the Locale associated with the
current request
* arrays - assuming the individual strings can be coverted to the
individual items
* collections - if not object type can be determined, it is assumed to
be a String and a new ArrayList is created
* Enumerations
* BigDecimal and BigInteger
Dave
[1] http://struts.apache.org/2.x/docs/type-conversion.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org