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
thanks for all, I was got it yet...
Jiri
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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 /
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
' 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
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..
' 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
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
11 matches
Mail list logo