获得验证码的方法
request.getAttribute("checkCode");
<%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" pageEncoding="GB18030" %>
<%!
Color getRandColor(int fc,int bc){//给定范围获得随机颜色
??????? Random random = new Random();
??????? if(fc>255) fc=255;
?????
类别: jsp/servlet? 查看评论