【发布时间】:2019-11-21 08:02:06
【问题描述】:
当用户提交表单时,我想检查表单中的多个文本字段并检查它是否为空,它必须显示哪个输入字段为空白
String A = request.getparameter("a");
String B = request.getparameter("b");
String C = request.getparameter("c");
if(A==null || B==null || C==null)
{
//Here I want to store the corresponding errors in an arrayfield and it should display which field is empty.
}
【问题讨论】:
标签: java