doPost() ·½·¨´¦Àí POST ÇëÇó -- ¼´£¬doPost() ¸ºÔðÇ°ÈýÖÖ·þÎñÆ÷Ö°Ôð£ºËü¸ù¾Ýͨ¹ý POST ·¢ËÍÀ´ÐÅÏ¢Éú³É HTML Îĵµ£¬È»ºó½«Îĵµ±£´æµ½Ò»¸öÁÙʱµÄ´ÅÅÌÎļþÖУ¬²¢½«Ä§Á¦¼ü·µ»Ø¸ø applet£¬Ä§Á¦¼üÓÃÀ´±êʶ HTML Îĵµ£¬²¢ÊʺÏÖ±½ÓǶÈëËæºóµÄ GET ÇëÇóÖС£
// ¹¹½¨ POST ÏìÓ¦¡£
ServletOutputStream out = response.getOutputStream();
out.println (fileName);
out.println ("That is the magic value to return as a URL " +
"parameter in a showDocument() call to " +
"get the data generated by this POST call.");
} // doPost() ·½·¨½áÊø¡£
doGet() ·½·¨´¦Àí GET ÇëÇó¡£Ëü¸ºÔð´Ó GET ²éѯÖÐÌáȡħÁ¦¼ü£¬´ÓÏà¹ØµÄ´ÅÅÌÎļþ¼ÓÔØ HTML Îĵµ£¬È»ºó½« HTML Îĵµ·µ»Ø£º