Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÖÐʹÓÃAjax¼¼Êõ

      ajax¼¼ÊõÊÇʹҳÃæÄֲܾ¿Ë¢ÐµÄÒ»ÖÖ¼¼Êõ,È«³ÆÓ¦¸ÃÊÇasynchronous JavaScript and xml´Ó¼¸¸öµ¥´Ê¾ÍÖªµÀËüµÄÇëÇóÏìÓ¦µÄ´¦ÀíÊÇÒì²½µÄ,¶øÇÒʹÓõÄÊÇJavaScriptºÍxml¼¼Êõ.
      ÎÒÃÇÔÚjavaÖÐʹÓÃajax¼¼Êõ×î¼òµ¥µÄÊÇʹÓÃËüµÄÒ»¸ö¿ò¼ÜdwrÖ»Òªµ¼ÈëÕâ¸ö°ü,×öÏàÓ¦µÄÅäÖÃ,¿ÉÊÇÎÒҪ˵µÄÊDZȽÏÂé·³µÄ¾ÍÊÇʹÓÃXmlHttpRequest×é¼þ.¾ßÌåµÄ´úÂëÈçÏÂ:1¡£³õʼ»¯·½·¨ÓÃÀ´Íê³ÉºËÐĶÔÏóµÄ³õʼ»¯.µ±È»ÕâЩ¶¼ÊÇÔÚJavaScriptÖÐÈ¡±àд.
var xmlRequest;
function createXMLRequest()
{
//Ê×ÏÈÅжÏä¯ÀÀÆ÷
if(windows.xmlHttpRequest)//»ðºüä¯ÀÀÆ÷
{
xmlRequest=new xmlHttpRequest;
}
if(IE.ActiveXObject)
{
xmlRequest=new ActiveXObject("microsoft.xmlHttp");
}
}
//ºÍ·þÎñÆ÷½¨Á¢Á¬½Ó
function search()
{
init();
var words = document.getElementById("words").value;
ajaxCoreObject.open("POST","DictServlet",true);
ajaxCoreObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
ajaxCoreObject.onreadystatechange = callBack;
ajaxCoreObject.send("key="+words);
}
//»Øµ÷º¯Êý´¦ÀíÊý¾Ý:
function callBack()
{
if(ajaxCoreObject.readyState==4 && ajaxCoreObject.status==200)
{
var data = ajaxCoreObject.responseText;
document.getElementById("result").innerHTML = data;
}
}

Õâ±ÈÆðʹÓÃdwr¿ò¼ÜÄÇ¿ÉÒªÂé·³¶àÁËÊÇ°É ²»¹ýѧѧÕâ¸öÒ²²»´í°¡.
   


Ïà¹ØÎĵµ£º

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

javaµÄ¼¸ÖÖ¶ÔÏó(PO,VO,DAO,BO,POJO)½âÊÍ

   Ò»¡¢PO:
persistant object
³Ö¾Ã¶ÔÏó,¿ÉÒÔ¿´³ÉÊÇÓëÊý¾Ý¿âÖеıíÏàÓ³ÉäµÄjava¶ÔÏó¡£×î¼òµ¥µÄPO¾ÍÊǶÔÓ¦Êý¾Ý¿âÖÐij¸ö±íÖеÄÒ»Ìõ¼Ç¼£¬¶à¸ö¼Ç¼¿ÉÒÔÓÃPOµÄ¼¯ºÏ¡£POÖÐÓ¦¸Ã²»°ü
º¬ÈκζÔÊý¾Ý¿âµÄ²Ù×÷¡£
   ¶þ¡¢VO
:value
objectÖµ¶ÔÏó¡£Í¨³£ÓÃÓÚÒµÎñ²ãÖ®¼äµÄÊý¾Ý´«µÝ£¬ºÍPOÒ»ÑùÒ²Êǽö½ö°üº¬Êý¾ ......

SUSE10Ï°²×°java JDK1.6

Ò»¡¢°²×°
´´½¨°²×°Ä¿Â¼£¬ÔÚ/usr/javaϽ¨Á¢°²×°Â·¾¶£¬²¢½«Îļþ¿¼µ½¸Ã·¾¶Ï£º
# mkdir /usr/java
1¡¢jdk-6u11-linux-i586.bin Õâ¸öÊÇ×Ô½âѹµÄÎļþ£¬ÔÚlinuxÉÏ°²×°ÈçÏ£º
# chmod 755 jdk-6u11-linux-i586.bin
# ./jdk-6u11-linux-i586.bin
ÔÚ°´ÌáʾÊäÈëyesºó£¬jdk±»½âѹ¡£
³öÏÖÒ»ÐÐ×Ö£ºDo you aggree to the ......

Java ¶ÁÈ¡ÊôÐÔÎļþÎÊÌâ

InputStream stream;
Properties prop = new Properties();// ÊôÐÔ¼¯ºÏ¶ÔÏó
stream = getClass().getResourceAsStream("NcJdbc.properties");
prop.load(stream);
stream.close();// ¹Ø±ÕÁ÷
String databaseName=prop.getProperty("jdbc.databaseName");
InputStream stream;
Properties prop = new Properties(); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ