So, I have a login form, a loginAction, LoginBean, and it all works great. The LoginBean calls out to the database, passing in a username to the database I either get a user back or I don't. If I do, get a user back from the database, I load up all the information into my MemberDTO. Then I put this 'member' into a session so I have throughout my web-application ... simple enough.
I want the user to be able to call a JSP page with a form so they will be able to edit their user information. Hence, various fields, checkboxes, text boxes, text areas, or options will have to be defaulted to with data from the user. There seem to be a number of ways to handle this, and I want to do what is what is appropriate for Struts.
So, the way I started to handle this is call the JSP page directly with the form. I got the 'member' object from session and I populated the value field as follows:
<html:text property="address1" value="${member.address1}"/>
Would this be appropriate? It works except for my checkboxes.
I was reading elsewhere on this site, that I could create a "setup" method in my formBean (MemberAddressForm). I'm guessing that it is here that I would get the information from the 'member' object (MemberDTO) and initialize the data into the formBean? Is that what I need to do?
If I'm not hitting the mark, can someone please tell me the appropriate way to prepopulate data into the form with data from the database?
Thanks for any help. It is VERY much appreciated!
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]