javaWeb之使用Kaptcha组件使用验证码
web.xml:
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://.google.code.kaptcha.Constants.KAPTCHA_SESSION_KEY); String str=request.getParameter("r"); if(k.equals(str)) out.print("true"); out.print(" "+k+"---"+str);%>结果:
验证码部分属性修改说明:
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。