| Author |
Default Value of Text Element
|
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
When processing a request in a servlet and I say String text1 = request.getParameter("textfield1"); And textfield1 has no value, will text1 be null or "" ?
|
 |
ritchie diputado
Greenhorn
Joined: Sep 19, 2003
Posts: 5
|
|
the value will be "". if textfield1 does not exist on the request the value will be null.
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
Perfect, that is what I was hoping for. Thanks.
|
 |
 |
|
|
subject: Default Value of Text Element
|
|
|