problem with DynaActionForms in conversion of values

2004-02-11 Thread Marco Mistroni
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

Re: problem with DynaActionForms in conversion of values

2004-02-11 Thread Mark Lowe
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,

Re: Problem with DynaActionForms

2003-07-12 Thread Richard Stack
= (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

Problem with DynaActionForms

2003-07-10 Thread Richard Stack
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

RE: Problem with DynaActionForms

2003-07-10 Thread Tan Khay Ong
) 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