You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/12/26 23:31:22 UTC

[jira] Updated: (BEANUTILS-95) [beanutils] Handling exceptions during BeanUtils.populate()

     [ http://issues.apache.org/jira/browse/BEANUTILS-95?page=all ]

Henri Yandell updated BEANUTILS-95:
-----------------------------------

      Bugzilla Id:   (was: 31571)
    Fix Version/s: LATER THAN 1.8.0
                       (was: 1.8.0)

> [beanutils] Handling exceptions during BeanUtils.populate()
> -----------------------------------------------------------
>
>                 Key: BEANUTILS-95
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-95
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Xavier Dury
>             Fix For: LATER THAN 1.8.0
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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