struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <a...@tritus.ca>
Subject RE: Form Field Unset Condition
Date Sat, 29 Mar 2003 20:31:43 GMT
On 03/29/03 13:17:39 -0500 Robert Taylor wrote:

>> 2. What should be used as CONDITION so that CONDITION is true if the
>> parameter "id" has been set? (I assume that my validation should
>> make sure
>> "id" is an integer if it is set.)
>
> DynaValidatorForm dynaForm = (DynaValidatorForm)form;
> String id = (String)dynaForm.get("id");
>
> if (id != null) {
> }

I think that something else is going on because that condition isn't met if 
I call the Action with no parameters. It seems to be "". (Which doesn't 
sound right either.)

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