Re: DynaActionForm if not set condition

2003-03-25 Thread Adam Sherman
On 03/25/03 19:37:24 -0800 Craig R. McClanahan wrote: The first form will correctly check whether the field has been set to anything or not. The second will never work -- if you want to check for a zero-length String, do this instead: "".equals((String) DynaActionForm.get("fieldName") Makes sen

Re: DynaActionForm if not set condition

2003-03-25 Thread Craig R. McClanahan
On Tue, 25 Mar 2003, Adam Sherman wrote: > Date: Tue, 25 Mar 2003 20:50:39 -0500 > From: Adam Sherman <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: DynaActionForm if not set condition > > How

DynaActionForm if not set condition

2003-03-25 Thread Adam Sherman
How do I check if a field hasn't been set at all? DynaActionForm.get("fieldName") == null, or DynaActionForm.get("fieldName") == "" doesn't seem to work. Any hints? A. -- Adam Sherman Tritus CG Inc. http://www.tritus.ca/ +1 (613) 797-6819