Perhaps I don't understand you, or perhaps I was not clear enough earlier.  If you do 
not have a field in your form then of course the property will be null. If the field 
contained the empty string then the property (if it is a String) will be set to the 
empty string. There is nothing strange about that.

Cheers,

Dick

----- Original Message ----- 
From: "remigijus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 12, 2003 2:19 PM
Subject: Re: [OS-webwork] Empty string property now "" instead of null?


> Regardless what have been said before. Treatment of strings and other form's
> variable has to be as it is written HTTP and HTML protocol and ww1, ww2,
> struts, maven or whatever have to be implemented in the way as it is in
> specification. They have to be transparent. Are you gaing to explain to
> every newcomer to ww that here it's working a little bit different? After
> that evryone will be confused. HTML froms works with strings and no way to
> make it different. If I haven't placed a field nobody can put it as it was
> left emty, it must be left as null.
> After all when you have an string you can convert to any required type, and
> if you have an conversion error it has to be error, and nothing else. Here
> is no other way. Are you going to change HTML and HTTP spec. Nobody will do
> that.
> 
> ----- Original Message -----
> From: "Dick Zetterberg" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 12, 2003 11:44 AM
> Subject: Re: [OS-webwork] Empty string property now "" instead of null?
> 
> 
> In WW1.3 and 1.4 a string parameter that is empty will set the string
> property to the empty string. Not null.
> If your program choose to interpret this as null that is up to you. How can
> you otherwise see the difference between a parameter that is not sent in at
> all and one that is sent in but is empty?
> 
> Cheers,
> 
> Dick Zetterberg
> [EMAIL PROTECTED]
> 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to