tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harry Mantheakis <ha...@mantheakis.freeserve.co.uk>
Subject Re: [OT] Getting form values - clarification required.
Date Fri, 07 Nov 2003 09:00:15 GMT
Hello

> When submitting a form with some text fields whose value is blank, in
> servlet using request.getParameter("test") gives a blank string with length
> of zero. I think in earlier versions (4.0.2) it was giving null. Is this the
> proper behavior or I am wrong ?.

My experience with TC 4.1.8 and 4.2.4 is the same.

Depending on how I design things, I only test for 'nullness' with respect to
submit elements (buttons) when the 'name' attributes are different for each
of two or more submit buttons in a form.

Harry Mantheakis
London, UK


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


Mime
View raw message