RE: load data from db into form

2003-09-01 Thread sonali bendre
Subject: Re: load data from db into form Thanks David, it looks bettre, you've right, this was a clear mistake :( this exception is not shown now, but now it is displayed blank page, only htmlbody/body/html Maybe, when action class is finished I must set some forward. now I have

Re: load data from db into form

2003-09-01 Thread Jiri Chaloupka
thanks for all, I was got it yet... Jiri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
Yes, nested tags, I must look at ... so now I have it without nested, form definition is now without it. but still I got java.lang.IllegalArgumentException: No destination bean specified at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:220) at

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Your from bean definition is the most useful thing you can provide to answer this.. if in your formBean definition or in the actionForm class you've got type form-property name=myprop type=com.whatever.ComplRegisterDTO / Then you're on the right lines.. But you're nesting so you jsp needs to

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
Thanks Mark I do not know if I understnad well. No I have in struts config: form-bean name=registerFull type=org.apache.struts.validator.DynaValidatorForm form-property name=prop type=cz.chalu.struts.modules.completeregister.ComplRegisterDTO / form-property name=id

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Okay assuming the following.. form-bean name=registerFull type=org.apache.struts.validator.DynaValidatorForm form-property name=id type=java.lang.Integer / form-property name=fullname type=java.lang.String / form-property name=notify type=java.lang.Integer /

Re: load data from db into form

2003-08-31 Thread Adam Hardy
Hi guys, could be many whys, but it looks like your form bean is null. have you configured your struts-config mapping correctly to reference this form? You should also cast the form bean into the type of form class you have specified, since it is passed into the action as the super class

RE: load data from db into form

2003-08-31 Thread David Friedman
' is in this function unless the action has 'name=someFormBeanName' in it. . } Regards, David -Original Message- From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] Sent: Sunday, August 31, 2003 12:24 PM To: Struts Users Mailing List Subject: Re: load data from db into form Yes, nested tags, I must look

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Okay forget the beanutils... form-property name=fullname type=java.lang.String / theForm.set(fullname,registerDTO.getFullname()); ..or form-property name=mybean type=cz.chalu.struts.modules.completeregister.ComplRegisterDTO / theForm.set(mybean, registerDTO); Hope this gets you there..

Re: load data from db into form

2003-08-31 Thread Jiri Chaloupka
' is in this function unless the action has 'name=someFormBeanName' in it. . } Regards, David -Original Message- From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] Sent: Sunday, August 31, 2003 12:24 PM To: Struts Users Mailing List Subject: Re: load data from db into form Yes, nested tags, I must

RE: load data from db into form

2003-08-31 Thread David Friedman
means that assist in the function of those subclasses. Regards, David -Original Message- From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] Sent: Sunday, August 31, 2003 4:29 PM To: Struts Users Mailing List Subject: Re: load data from db into form Thanks David, it looks bettre, you've right