Hi Craig I understand that you did not follow this thread from the beginning. As I mentioned before - when working with int, short, byte types - my app works fine. I don't get any runtime exception!
Is it crucial for the Action Form to have String properties? Rivka -----Original Message----- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 8:06 AM To: Struts Users Mailing List Subject: Re: Using struts forms as Value Objects: your opinion? On 7/11/05, Rivka Shisman <[EMAIL PROTECTED]> wrote: > Hi guys, > > Borislav - thank you for the time you spent debugging this issue :-) > > So now I wonder - is it o.k. to use typed properties in my Action Forms? > Or is there an important reason why I should Strings only? > To answer this question for yourself, please build a trivial Struts based application like this: * Build a form bean that has a property of type "int". * Build a JSP page with a form that binds this property to a text input field. * Deploy the application, and type "1a3" instead of "123" into that field. If you like the result (a runtime exception), then by all means go ahead and make your action form properties be typed. Otherwise, if you're going to use Struts you should listen to all the tutorials and books and articles and mailing list messages that tell you to make your form bean properties be strings :-). Craig McClanahan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************************************************** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** eSafe scanned this email for viruses, vandals and malicious content. ** ************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]