To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: How to get posted data into a nested object ?
By the way, I should warn you that using Date and int fields on a form
bean (which is what you're essentially doing) can lead to problems
when the user types in invalid data.
Maybe
Subject
Re: How to get posted data into a nested object ?
It's not clear within your error at which point the error is
occurring. The problem could be that when BeanUtils tries to populate
the firstName field of the dependent bean, dependent is null. Maybe
you need to modify your form so
PROTECTED]
07/06/2005 05:42 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: How to get posted data into a nested object ?
It's not clear within your error at which point the error
Hubert Rabago [EMAIL PROTECTED] wrote on 08/06/2005 02:15:20 PM:
I would think so. I'm not as familiar with the internals of BeanUtils
as I'd like to be, but since your form is in request scope, that means
it'll create a new instance upon submission. From that, it'll call
getDependent().
Hello,
Short description:
-
How do I get posted data into a bean within the form bean ?
The JSP has this code.
html-el:text property=dependent.firstName maxlength=15 value=
${dependentForm.dependent.firstName}/
The page is posted and I get this error:
[07/06/05
[EMAIL PROTECTED] wrote:
Hello,
Short description:
-
How do I get posted data into a bean within the form bean ?
Do you have the bean defined in the struts-config for that particular
action? The name attribute of the action mapping should contain the
name of the
/2005 03:57 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: How to get posted data into a nested object ?
[EMAIL PROTECTED] wrote:
Hello,
Short description:
-
How do I get
By the way, I should warn you that using Date and int fields on a form
bean (which is what you're essentially doing) can lead to problems
when the user types in invalid data.
Maybe you'd be interested in something like FormDef? http://formdef.dev.java.net
Hubert
On 6/7/05, [EMAIL PROTECTED]
What the heck did I just write?
I meant to say From the error message you shared, it isn't clear at
which point in the submit process the error is occurring. Forgive
me, it's near the end of a pretty confusing day here at work.
Hubert
On 6/7/05, Hubert Rabago [EMAIL PROTECTED] wrote:
It's not
It's not clear within your error at which point the error is
occurring. The problem could be that when BeanUtils tries to populate
the firstName field of the dependent bean, dependent is null. Maybe
you need to modify your form so that getDependent() always returns a
valid DependentVO object,
10 matches
Mail list logo