Your ActionForms should never be passed to your DB layer... ActionForms should have strict String attributes and in your Action, take care of mapping your Business Beans to your ActionForms and visa versa-- two similar, but separate objects. PropertyUtils works nicely.
Jacob -----Original Message----- From: Aaron Longwell [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:00 AM To: Struts-User Subject: Where to do TextConversion? Struts Users, I'm adding some currency fields to an ActionForm in struts. The data is stored as float in the database. I'm wondering where to do conversion between a "$6.70" that's displayed to the user on the form, and the 6.7 that's stored in the database. Should I use the java.util classes in the Action? Or should I add a: setPrice(java.lang.Float) getPrice java.lang.Float() to the ActionForm... and handle conversion within the ActionForm methods? I may be suffering from a case of the Mondays... but I can't seem to think which would be better or more appropriate. I am nearly finished with this, my first Struts project. Thanks, Aaron --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]