The to/from string conversion should be done similar to how java beans
works, since it can then be used more generally than just the Struts
framework.  However, it needs some I18N additions which currently aren't
available in the java beans work.

Bill Wallace

Fax: (716) 295-4718
Element K
'the knowledge catalyst'
www.elementk.com


                                                                                       
          
                    Viral Tolat                                                        
          
                    <viral.tolat@int        To:     [EMAIL PROTECTED]      
          
                    egral.com>              cc:                                        
          
                                                                                       
          
                    09/27/01 03:13          Subject:     Data conversion               
          
                    PM                                                                 
          
                    Please respond                                                     
          
                    to struts-dev                                                      
          
                                                                                       
          
                                                                                       
          




Is there any intent to modify the code to centralize conversion of
strings to objects and reverse? Currently, ConvertUtils is used to
convert strings to primitive objects, however, toString is used to
convert the object to a string.

We'd like to integrate in a data conversion framework but to do this
cleanly we need a cental place where all data conversion happens.  In
addition, we'd need to be able to access the request or page context in
order to provide custom conversions on a per page basis.

We've looked at the transformations extension and the Capco Mapper,
however, we don't see how the transformations can be used with html:text

tags to provide data conversion from strings to objects since the Tag is

not involved at all in this process.

Thanks







Reply via email to