Hi all,
In my app I am using a DynaActionForm to retrieve
Input values.
I have one problem: one field of the bean is of type BigDecimal.. in the
Jsp I am setting the default initial value of zero, but this does not
prevent the silly user from deleting the zero and leave the field blank.
At
I've always found that BeanUtils doesn't like BigDecimal and use type
string then convert to BigDecimal before passing it up to the model .
If you don't want to use string then perhaps Double or even its
primitive (if you can get away with it) might work for you.
On 11 Feb 2004, at 11:47,
= (String) dyform.get(userName);
String password = (String) dyform.get(password);
-Original Message-
From: Richard Stack [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 9:08 AM
To: [EMAIL PROTECTED]
Subject: Problem with DynaActionForms
I'm implementing DynaActionform for the first time
I'm implementing DynaActionform for the first time. I'm defining them in
struts-config.xml.
form-bean
name=loginForm
dynamic=true
type=org.apache.struts.validator.DynaValidatorForm
form-property name=userName type=java.lang.String/
form-property name=password
) dyform.get(password);
-Original Message-
From: Richard Stack [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 9:08 AM
To: [EMAIL PROTECTED]
Subject: Problem with DynaActionForms
I'm implementing DynaActionform for the first time. I'm defining them in
struts-config.xml.
form-bean
5 matches
Mail list logo