java后台较验checkbox提交值


String dontShow = (String)request.getParameter("dontShow");			
				
if(StringUtil.isNotBlank(dontShow)&& (dontShow.equalsIgnoreCase("true") || dontShow.equalsIgnoreCase("on") ||
	                    dontShow.equalsIgnoreCase("yes") || dontShow.equals("1"))){
					
				}

你可能感兴趣的:(java)