struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <>
Subject Re: DynaActionForm if not set condition
Date Wed, 26 Mar 2003 04:10:43 GMT
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 sense, thanks.

If I have the field defined as a String in the <form-bean> and am 
validating using depends="integer", will the field be null if the action is 
called directly?



Adam Sherman
Tritus CG Inc.
+1 (613) 797-6819

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message