JavaͨÓÃÑéÖ¤Âë³ÌÐò¼°Ó¦ÓÃʾÀý£¨ÌṩԴÂëÎĵµÏÂÔØ£©
°Ñ֮ǰÏîÄ¿ÖÐдµÄÒ»¸öJavaͨÓÃÑéÖ¤Âë³ÌÐòÕûÀíÁËһϣ¬Óë´ó¼Ò·ÖÏí£¬Ï£ÍûÄÜÅ×שÒýÓñ¡£
Ò»¡¢Ö÷Òª¹¦ÄÜ£º
1¡¢Ö§³Ö´¿Êý×Ö¡¢´óд×Öĸ¡¢Ð¡Ð´×Öĸ£¬¼°Á½Á½»ìºÏ»òÈýÕß»ìºÏÀàÐÍÑéÖ¤Â룻
2¡¢Ö§³Ö×Ô¶¨ÒåÌØÊâ×Ö·ûÅųý£¨Èç0oOi1jI£©£»
3¡¢Ö§³ÖͼƬ¼°ÎÄ×ÖÁ½ÖÖÀàÐÍÑéÖ¤Â룻
4¡¢Ö§³Ö×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС£»
5¡¢Ö§³Ö×Ô¶¨Òå¸ÉÈÅÏßÌõÊý£»
6¡¢Ö§³Ö×Ô¶¨Òå¼°Ëæ»ú¶¨ÒåͼƬ¡¢ÎÄ×Ö¡¢¸ÉÈÅÏßÑÕÉ«£»
ÆäËû£ºÒ³ÃæÌṩÁË<iframe>ºÍ<img>Á½ÖÖÒ³ÃæÏÔʾÑéÖ¤ÂëµÄ·½Ê½¡£
a¡¢½ö°¢À²®Êý×Ö
b¡¢½ö×Öĸ£¨´óСд»ìºÏ£©
c¡¢½öСд×Öĸ
d¡¢½ö´óд×Öĸ
d¡¢Êý×ÖÓëСд×Öĸ»ìºÏ
e¡¢Êý×ÖÓë´óд×Öĸ»ìºÏ
f¡¢Êý×ÖÓë´óСд×Öĸ»ìºÏ
g¡¢×Ô¶¨Òå×Ö·ûÑÕÉ«£¨»òËæ»ú£©
h¡¢×Ô¶¨ÒåͼƬÑÕÉ«£¨»òËæ»ú£©
i¡¢×Ô¶¨Òå¸ÉÈÅÏßµÄÌõÊý¼°ÑÕÉ«£¨»òËæ»ú£©
j¡¢×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС
k¡¢×Ô¶¨ÒåÐèÅųýµÄÌØÊâ×Ö·û£¨Èç0oµÈÄÑ·Ö±æ×Ö·û£©
¶þ¡¢´úÂë˵Ã÷£º
1¡¢pubMsg.jsp ·¢±íÁôÑÔÒ³Ã棬ʵÏÖ<iframe>ºÍ<img>Á½ÖÖÏÔʾÑéÖ¤Â뷽ʽ£¬¼°ajaxÌá½»¹¦ÄÜ
Ò³Ãæ´úÂ룺
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><%=basePath%></title>
</head>
<script type="text/javascript">
var req;
//Ìá½»ÁôÑÔ
function pubMsg(){
msgTitle=document.msgForm.msgTitle.value;
msgContent=document.msgForm.msgContent.value;
verifyCode=document.msgForm.verifyCode.value;
//¼ì²éÊäÈëÄÚÈݸñʽ
if(msgTitle.length<5||msgContent.length<5)
{
alert("±êÌâºÍÄÚÈݲ»ÄÜÉÙÓÚ5¸ö×Ö·û");
&n
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
ת×Ô£ºhttp://blog.csdn.net/felomeng/archive/2009/10/17/4688257.aspx
ÔÚeclipseÏÂʹÓÃjavaµ÷ÓÃweka ÊÕ²Ø
wekaÊǺܺÃÓõĻúÆ÷ѧϰ¿â£¬ÕâÀï¾Í²»Ïêϸ½éÉÜÁË¡£
ÑÔ¹éÕý´«£¬ÒªÊ¹ÓóÌÐò·½Ê½Ê¹ÓÃweka£¬²½ÖèÈçÏ£º
Ò»¡¢ÔÚeclipseÀïн¨Ò»¸öjava project£º
1. ½¨Á¢¹¤³Ì£ºµ¥»÷²Ëµ¥ÖÐfil ......
×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍ ......
java³ÌÐòÄÚ´æÖ÷Òª·ÖΪÁË2¸ö²¿·Ö£¬°üÀ¨ stack segment(Õ»ÄÚ´æ)¡¢heap segment(¶ÑÄÚ´æ)¡£
ÔÚ·ÖÎöJava³ÌÐòÄÚ´æ·ÖÅäÇé¿öʱ£¬ÎÒÃÇ´ÓÏÂÃæÕâ¸ö¾³£±»Ê¹ÓõÄÀý×Ó¿ªÊ¼°É¡£
ÏÂÃæ³ÌÐò½«´òӡʲôÄØ£¿
Java´úÂë
String s1&nbs ......
¾¡¹ÜÔƼÆËãÕâÒ»ÊõÓï²¢²»ÐÂÏÊ(AmazonÔÚ2006Äê¾Í¿ªÊ¼ÌṩËüµÄÔÆ·þÎñ)£¬µ«´Ó2008ÄêÆðËü²Å¿ªÊ¼ÕæÕý³ÉΪÁ÷Ðдʣ¬ÕâÆڼ䣬GoogleºÍ
AmazonµÄÔÆ·þÎñÖð½¥»ñµÃÁ˹«ÖڵĹØ×¢¡£ GoogleµÄApp EngineʹÓû§Äܹ»ÔÚGoogle»ù´¡ÉèÊ©ÉϹ¹½¨ºÍÍÐ¹Ü Web Ó¦ÓóÌÐò¡£
¡¡¡¡Á¬Í¬S3£¬AmazonWeb Services»¹°üÀ¨Elastic Cloud Compute
(EC2) ......