When the form is submitted to the server, the server's servlet obtains the request parameters through the Getparamater () method. But notice what time, Request.getparatemeter (name) uses name to refer to the name of the parameter being submitted:
(1) A blank form is submitted, only text of the type will send the request parameters, and Radio,checkout and select and other types will not send the request parameters, that is, there is no key=value this type,
(2) Call Getparamater (name) on this side of the servlet, if the request parameter does not contain name, then the resulting null
(3) If the request parameter contains, but does not fill in the content, then the resulting empty string ""
(4) in the background to make a non-null judgment need to judge two situations so generally written: set the value of values
if (Value!=null &&!value.trim (). IsEmpty ())
The preceding is a non-null judgment
The following is a string that may contain more than one space, so you need to cut the space before and after the empty string call IsEmpty () method returns True
Summary of data types submitted to the background by a blank form (Java)