Re: Populate Form from DAO

2008-02-01 Thread Wes Wannemacher
If the beans match, you could probably use commons-beanutils, but IIRC, you'll incur a performance penalty. http://commons.apache.org/beanutils/apidocs/org/apache/commons/beanutils/BeanUtils.html#copyProperties(java.lang.Object,%20java.lang.Object) By doing it explicitly though, you allow yoursel

Re: Populate Form from DAO

2008-02-01 Thread Al Sutton
Any reason you're not using ModelDriven? - Original Message - From: "Richard Sayre" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, February 01, 2008 1:01 PM Subject: Re: Populate Form from DAO Yes, I know I can do it this way

Re: Populate Form from DAO

2008-02-01 Thread Richard Sayre
Yes, I know I can do it this way. I'm just being lazy. I want: To automatically get/set MyObject.getMeember1() rather then it automatically setting it in the Action and then having me create the Object and populate it with values. On Feb 1, 2008 9:10 AM, LEONARD Julien (Consulting for AC

RE: Populate Form from DAO

2008-02-01 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Did you try : MyObject theObject; (geter and setter on theObject) execute () { theObject = myDAO.getRecord(id); } And in the JSP : -Message d'origine- De : Richard Sayre [mailto:[EMAIL PROTECTED] Envoyé : vendredi 1 février 2008 13:37 À : Struts Users Mailing List Objet : Popula