RE: How to instantiate a DynaActionForm?

2003-06-19 Thread Joseph Yang
This is wonderful!! Now it's working great! Thank you so much Ted! P.S In case someone also wants to use this approach, after populate the profile info and put the bean into request, you have to do: request.setAttribute("profileForm", formObj) instead of request.setAttribute("baseForm", formOb

RE: How to instantiate a DynaActionForm?

2003-06-18 Thread Joseph Yang
ofileForm into a single coarse-grained form. Then you could simply set the additional properties, rather than instantiate another object. > http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html > > -----Original Message- > From: Joseph Yang [mailto:[EMAIL PROTECTED] > Sent: We

How to instantiate a DynaActionForm?

2003-06-18 Thread Joseph Yang
Hello, I have two pages: login.jsp and userProfile.jsp I defined two DynaActionForm(s) in struts-config.xml: loginForm and userProfileForm Now inside loginAction class, after handle the authentication, I want to get the user profile information from database, then instantiate userProfileForm and

Pre-populate DynaActionForm

2003-06-13 Thread Joseph Yang
Hi everyone, I have a login page and client profile page(name, phone, address...), after login, the client's information will be displayed so the client can modify When I use ActionForm (clientInfoForm), in loginAction, I get the information for the client, set up the setters of clientInfoForm, p