1.验证码 -- 平台项目帐号登录时常用到的,有一定安全防范君子的报障,可防范没有什么技术小人呵呵,开玩笑不要认真,可能对初学者有帮助,有需要拿去吧
整理不易,转载请注明出处:Servlet生成验证码图片
2.配置,主要是web.xml的配置,如下:
RandomCode com.zuidaima.servlet.RandomCode RandomCode /http://www.2cto.com/uploadfile/Collfiles/20140329/20140329105901325.
3.代码调用部分实现如下:
<iframe allowtransparency="yes" border="0" frameborder="no" height="35" id="codeFrame" marginheight="0" marginwidth="0" name="codeFrame" scrolling="no" src="/http://www.2cto.com/uploadfile/Collfiles/20140329/20140329105901325." width="102"> refresh
4、上项目结构图:

5、运行效果图
