check out the struts validation framework - there's a developer guide
on the Struts pages, and loads of info in books, on the archives,
etc.
HTH,
-jeff
On Monday, March 31, 2003, at 02:32 AM, Riyaz Mansoor wrote:
hi
consider an integer field in an action form
private int A = -1;
public void
Don't do that. Make all your form fields strings, use the validator plug
in, and convert from String to other type in your Action class. One good
reason to do this is that if the user were to type ouch in an Integer
field, it would be impossible to even tell them that ouch wasn't a valid
value
I don't understand.
I thought the Validation framework would check for Integer in an Integer field, then
return the appropriate message.
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:41 PM
To: Struts Users Mailing List
Subject: Re: action
form Q
I don't understand.
I thought the Validation framework would check for Integer in an Integer
field, then return the appropriate message.
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:41 PM
To: Struts Users Mailing List
Subject: Re
4 matches
Mail list logo