struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lolik Tum" <L....@verizon.net>
Subject Re: html:form help
Date Mon, 01 Jul 2002 15:07:17 GMT
Why don't you use Integer Objects as wrap arounds your integeres? This way
you can have nulls which will be blank on you form.

----- Original Message -----
From: "Pete Serafin" <pete.serafin@sbti.com>
To: <struts-user@jakarta.apache.org>
Sent: Friday, June 28, 2002 8:07 AM
Subject: html:form help


> OK ... I have what should be an easy one.  When using html:form and
> html:text tags, how can I prevent my form from initializing integer
> form fields to the default values set in my ActionForm?  For example,
> when my form renders, I always have zeros in form elements representing
> numbers, but I want them to be blank.  Obviously, these attributes cant
> be set to null as with strings, so how can this behavior be "fixed"?
> TIA.
>
>
>
> Pete Serafin
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


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


Mime
View raw message