struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <a...@tritus.ca>
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?

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message