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
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
2 matches
Mail list logo