I'm trying to convert string posts into type specific java objects for
pushing straight into my database.  I don't want the hastle/bloat of
maintaining two suites of objects/fields one with strings, one with type
specific objects.  I can see how to use ConvertUtils to map strings to
objects, and extend the tag libs simply to get the rendering behaviour I
want.  However, I can't see an elegant way to handle conversion failures.  I
want something akin to "The <property> you specified is not a valid <type>"
in my ActionErrors so I can render this generically.  But it seems there's
no way of accessing the property name that's being converted from inside my
converter.  Of course I'd need this information to do the aforementioned.

I think there should be no separation of validation and type conversion, I
can't see why they shouldn't be done together.  Should BeanUtils be extended
to cater for this?

Regards,
Graham Bygrave.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to