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 setA(int a) {A = a;} public int getA() { return A; }
what if the user typed text suche as "ouch" in the html form field. how will
struts behave under such circumstances? would it throw some exception? would
it not set any value? is there a way to check if such a thing has happened?
similarly, if there are variations for Date, Time, Timestamp fields i'd be
very interested to know them as well.
thanx guys
appreciate any help
riyaz
ps: any one remember what's the reg expression to catch multi-line comments
(/* blah */) ?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]