tomcat-users mailing list archives

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

> 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:
For additional commands, e-mail:

View raw message