Re: Populate Form from DAO

2008-02-01 Thread Wes Wannemacher
t; Did you try : > > > > MyObject theObject; > > (geter and setter on theObject) > > > > execute () { > > > > theObject = myDAO.getRecord(id); > > } > > > > And in the JSP : > > > > -Message d'origine----- >

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
hard Sayre [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 1 février 2008 13:37 > À : Struts Users Mailing List > Objet : Populate Form from DAO > > > Struts 2 allows us to automatically populate our forms if we name our fields > correctly, which is wonderful. > > My actions

RE: Populate Form from DAO

2008-02-01 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Objet : Populate Form from DAO Struts 2 allows us to automatically populate our forms if we name our fields correctly, which is wonderful. My actions usually go something like this execute () { MyObject o = myDAO.getRecord(id); member1 = o.getMember1(); member2 = o.getMember2(); } MyObject

Populate Form from DAO

2008-02-01 Thread Richard Sayre
Struts 2 allows us to automatically populate our forms if we name our fields correctly, which is wonderful. My actions usually go something like this execute () { MyObject o = myDAO.getRecord(id); member1 = o.getMember1(); member2 = o.getMember2(); } MyObject is a JO for hold a row