算法:
1、jsp页面,调用<image></image>标签;
代码摘要:<img src="/javaweb/PictureCheckCode" id="createCheckCode">
2、编写servlet,生成验证码;
3、配置web.xml
<servlet>
<servlet-name>PictureCheckCode</servlet-name>
<servlet-class>com.PictureCheckCode</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PictureCheckCode</servlet-name>
<url-pattern>/PictureCheckCode</url-pattern>