µÚÒ»²½£º½¨Á¢Ò»¸öcode.jspµÄÒ³Ã棬²úÉúËæ»úÂë
<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"
import="java.io.*,
java.util.*,
com.sun.image.codec.jpeg.*,
java.awt.*,
java.awt.image.*"%>
<%
String s = "";
int intCount = 0;
/**
* ÑéÖ¤Âë¿í¶È
*/
int width=100;
/**
* ÑéÖ¤Âë¸ß¶È
*/
int height=25;
/**
* ÑéÖ¤Âë×Ö·û¼¯
*/
char[] code=new char[]{
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z',
'a','b','c','d','e','f','g','h','i','j','k','l','m','n','p','q','r','s','t','u','v','w','x','y','z',
'2','3','4','5','6','7','8','9','¿ª','¾ø','Ìì','µØ','ÎÒ','¼Ò','˱','¹â','°®','ÀÖ','Ц','ÌÃ','С','°º'};
/**
* ´´½¨Ò»¸öËæ»úÊýÉú³ÉÆ÷Àà
*/
Random random = new Random();
// Ëæ»ú²úÉúcodeCountÊý×ÖµÄÑéÖ¤Âë¡£
for (int i = 0; i < 4; i++) {&nbs
×òÌìÔÚ䶫Î÷µÄʱºò£¬Êý¾Ý¿âÓõıàÂëÊǣգԣƣ£¸£¬Ò³ÃæÒ²Êǣգԣƣ£¸£¬È»ºó´æ½øÊý¾Ý¿âµÄʱ·¢ÏÖ»¹ÊÇÂÒÂë¡£ÖÐÎĵÄʱºò£¬Ëæºó£ä£å£â£õ£ç£¬²éµ½£Á£ã£ô£é£ï£îÀïÃæµÃµ½µÄ±íµ¥ÄÚÈÝÒ²ÊÇÂÒÂ룬¹þ¹þ
ÎÊÌâÕÒµ½ÁË£¬ÔÀ´Êǣƣï£ò£í±íµ¥»òÕßÆäËûµØ·½ÓÐÎÊÌâ
ºóÀ´ÔÚ£÷£å£â£®£ø£í£ìÖмÓÉ϶ԣӣð£ò£é£î£ç±àÂëµÄ¿ØÖÆÓï¾ä£¬ºÃÁË£®£®£®ºÇºÇ
......
request, reponse, out, session, application, config, pagecontext, page, exception.
Ò».request¶ÔÏ󣺸öÔÏó·â×°ÁËÓû§Ìá½»µÄÐÅÏ¢£¬Í¨¹ýµ÷ÓøöÔÏóÏàÓ¦µÄ·½·¨¿ÉÒÔ»ñÈ¡·â×°µÄÐÅÏ¢£¬¼´Ê¹ÓøöÔÏó¿ÉÒÔ»ñÈ¡Óû§Ìá½»ÐÅÏ¢¡£
1.Request¶ÔÏó¿ÉÒÔʹÓÃgetParameter(string s)·½·¨»ñÈ¡¸Ã±íµ¥Í¨¹ýtextÌá½»µÄÐÅÏ¢¡£È磺
Requ ......