RE: How to instantiate a DynaActionForm?

2003-06-19 Thread Joseph Yang
it). -T. Joseph Yang wrote: Thanks for all the answers! I used Carl's example, and it works But I do like Ted's idea, so I tried it out, combined the two forms together, then the validator is not working, because when I define the validation, there are no firstName or lastName on the login

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

RE: How to instantiate a DynaActionForm?

2003-06-18 Thread Joseph Yang
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: Wednesday, June 18, 2003 11:07 AM To: 'Struts Users Mailing

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,