Validating that values are of the specified type

2001-02-09 Thread Kishore Subramanian
Consider the following scenario : I have a form element "A" that can accept only integers. Corresponding to this property, I have a setA(int i) and getA() methods in my ActionForm. When the user enters a non-integer value for "A" and submits it, the ActionServlet populates the form and

Re: Validating that values are of the specified type

2001-02-09 Thread Oleg V Alexeev
Hello Kishore, Friday, February 09, 2001, 11:36:05 PM, you wrote: This is darkplace in Struts for my mind. Default values in this case is not good way. I use next approach to support validation of int values. In form I define property of type String to hold value and in validate method I try to