t; Did you try :
> >
> > MyObject theObject;
> > (geter and setter on theObject)
> >
> > execute () {
> >
> > theObject = myDAO.getRecord(id);
> > }
> >
> > And in the JSP :
> >
> > -Message d'origine-----
>
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
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
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
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
5 matches
Mail list logo