commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31571] New: - Handling exceptions during BeanUtils.populate()
Date Wed, 06 Oct 2004 22:02:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31571>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31571

Handling exceptions during BeanUtils.populate()

           Summary: Handling exceptions during BeanUtils.populate()
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: xdury@hotmail.com


Hi,

I know this has been asked already before but could there be a way to handle 
exceptions that occur during population? The populate() function could either 
return a map(property, exception), take that kind of map as argument or -even 
better- take a PopulateExceptionHandler as argument.

The reason I would like to see this feature implemented is to allow struts to 
use this mechanism to convert parameters from the request to actionform's 
properties without *falling apart* when encountering one that is not well-
formed. 

It would be nice too if we were not *forced* to use string-only properties for 
actionforms (which in fact is a way to circumvent this conversion problem). I 
would like my ActionForm or DynaActionForm declare strongly-typed properties 
(maybe custom classes), register proper Converters into ConvertUtils in the 
ActionServlet.initServlet() for example, and then maybe get back conversion 
errors from within my action (maybe the PopulateExceptionHandler could add 
some ActionErrors to the request).

What do you think? I know this issue is tightly coupled to struts but 
well... ;-)

Thanks a lot,

Xavier

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message