struts2 CAPTCHA图像插件
来源:互联网 发布:乐视手机网络时间同步 编辑:程序博客网 时间:2024/04/30 06:35
CAPTCHA(Completely Automated Public Turning Test to tell Computers and Humans Apart)部件。下载地址
使用方法:
在Package中注册Result-type,在action中加入以下代码:
<result type="captcha"><param name="hashCookieName">hashCookie</param><param name="wordLength">6</param><param name="imageWidth">90</param><param name="imageHeight">25</param></result>
其中的值可以根据自己需求设定。
如有一个Login的页面:
<s:form><s:textfield name="name" label="User Name"/><s:password name="password" label="Password"/><tr><td><img alt="" src="GetCaptchaImageAction.action"></td><td><s:textfield name="word" theme="simple" value=""/></td><s:submit value="Login"/></s:form>
在这个页面中有一个
<img alt="" src="GetCaptchaImageAction.action">
那么该Action就可以写为:
<action name="GetCaptchaImageAction"><result type="captcha"><param name="hashCookieName">hashCookie</param><param name="wordLength">6</param><param name="imageWidth">90</param><param name="imageHeight">25</param></result></action>
- struts2 CAPTCHA图像插件
- 我的图像之路之CAPTCHA 和 break CAPTCHA
- 我的图像之路之CAPTCHA 和 break CAPTCHA
- laravel 图像验证码 Gregwar\\Captcha 和 mews/captcha
- Captcha
- Captcha
- captcha
- CAPTCHA
- django-simple-captcha 验证码插件
- 用Rails Captcha插件,轻松实现验证码
- 【Django插件使用】Django Simple Captcha登陆验证码
- spring MVC中引入captcha的插件生成图片验证码
- django-simple-captcha 验证码插件 和自己实现验证码的
- 在spring MVC中引入captcha的插件生成图片验证码
- django-simple-captcha==0.4.6 验证码插件使用方法
- clock captcha
- 什么是 CAPTCHA
- Captcha Cracker
- Manacher算法处理字符串回文
- jsp文件中数字格式化
- listView详解
- Mybatis generator 自动生成配置文件
- android intent 传递list或者对象
- struts2 CAPTCHA图像插件
- 主流编程语言属性一览(多图)
- ubuntu安装sublime 的配置
- IoC/DIP其实是一种管理思想
- 不利于写出好代码的15个职场因素
- 杭电1873题 看病要排队
- SQL server基础理论学习
- Android开机启动Activity界面
- 编程调试和诊断的五大规则