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

Java Web»ù´¡£ºµÚ¶þʮһ½² Ajax½»»¥µÄ»ù±¾¹ý³Ì

±¾ÎÄÄÚÈÝÕª×Ô£º¡¶Java Web¿ª·¢½Ì³Ì——ÈëÃÅÓëÌá¸ßƪ£¨JSP+Servlet£©¡·
½»»¥µÄ»ù±¾¹ý³Ì°üÀ¨£º
l         ´´½¨XMLHttpRequest¶ÔÏó£»
l         ·¢ËÍÇëÇó£»
l         ´¦ÀíÏìÓ¦¡£
´´½¨XMLHttpRequest¶ÔÏ󣬲»Í¬µÄä¯ÀÀÆ÷XMLHttpRequest¶ÔÏóµÄ´´½¨¹ý³Ì²»Ì«Ïàͬ£¬ÐèÒªÕë¶Ô²»Í¬µÄä¯ÀÀÆ÷½øÐв»Í¬µÄ´¦Àí¡£ÏÂÃæµÄ´úÂëչʾÁËÕâ¸ö¹ý³Ì¡£¶ÁÕß¿ÉÒÔÖ±½ÓÔÚ×Ô¼ºµÄ³ÌÐòÖÐʹÓÃÏÂÃæµÄ´úÂë¡£
var xMLHttpRequest=false;
function createXMLHttpRequest(){
   if(window.XMLRequest){  // Mozillaä¯ÀÀÆ÷
      xMLHttpRequest = new XMLHttpRequest();
   }else if(window.ActiveObject){
      try{
         XMLHttpRequest = new ActiveXobject(“Msxml2.XMLHTTP”);
      }catch(e){
         try{
            XMLHttpRequest = new ActiveXobject(“Microsoft.XMLHTTP”);
         }catch(e){}
      }
   }
}
¶ÔÏó´´½¨Ö®ºóÊÇ·¢ËÍÇëÇó£¬Ê×ÏÈͨ¹ýopen·½·¨ÉèÖÃÇëÇó·½Ê½¡¢ÇëÇóµÄ×ÊÔ´µÈ£¬È»ºóÖ¸¶¨ÏìÓ¦·½·¨£¬È»ºóµ÷ÓÃsend·½·¨·¢ËÍ¡£
function sendRequest(url){
   createXMLHttpRequest();
   XMLHttpRequest.open(“GET”,url,true);
   XMLHttpRequest.onreadystatechange=processResponse; //Ö¸¶¨ÏìÓ¦º¯Êý
   XMLHttpRequest.send(null); //·¢ËÍÇëÇó
}
¿Í»§¶Ë½ÓÊÕµ½ÏìÓ¦ÐÅÏ¢Ö®ºó£¬µ÷ÓÃprocessResponse·½·¨£¨ÔÚ·¢ËÍÇëÇóµÄʱºòÉèÖõģ©½øÐд¦Àí¡£
function processResponse(){
   if(XMLHttpRequest.readystate==4){ // Åж϶ÔÏó״̬
      if(XMLHttpRequest.status==200){  // ÐÅÏ¢ÒѾ­·µ»Ø£¬¿ªÊ¼´¦ÀíÐÅÏ¢
         var res =
 XMLHttpRequest.responseXML.getElementsByTagName(“res&rd


Ïà¹ØÎĵµ£º

Ajax¶¨Ê±Ë¢ÐÂÒ³Ãæ

var xmlHttp;
var flag = false;
function createXMLHttpRequest()
{
  if(window.ActiveXObject)
  {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  else if(window.XMLHttpRequest)
  {
  xmlHttp=new XMLHttpRequest();
  }
}
fu ......

javaÊý¾Ý½á¹¹Ö®¶ÑÕ»

½¨Á¢½ÚµãÀà(Node.java)
package com.yz.mystack;
public class Node {
Object data;
Node next;
public Node(Object data){
this.data=data;
next=null;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public Node getNext() {
......

ʹÓÃJava½øÐÐͼÏñ´¦Àí

¡¾Òý×Ô¼üÅÌÉϵÄÎèÕߵIJ©¿Í¡¿Í¼Ïñ±àÂëÊä³öµÄ·½·¨£¬Ìṩ±àÂë½ø¶È¼àÌý£¬ÉèÖñàÂëÖÊÁ¿µÄÖ§³Ö£¨Ìض¨¸ñʽ£¬ÀýÈçJPG£©¡£
Õâ¸ö·½·¨Ö§³ÖµÄ±àÂë¸ñʽÒÀÀµÔËÐл·¾³ÀïImageIOÒѾ­×¢²áImageWriter¼¯ºÏ¡£
Java SE 6ÖеÄImageIOĬÈÏÖ§³ÖJPG£¬BMP£¬PNG£¬GIFµÈ¸ñʽ£¬Ò²¿ÉÒÔͨ¹ý·Ç±ê×¼Àà¿âÌí¼ÓImageIO¶ÔͼÏñ¸ñʽµÄÖ§³Ö£¬±ÈÈç°²×°JAI_ImageIO¡ ......

java¶ÔexeclµÄµ¼Èë¡¢µ¼³ö²Ù×÷ POI / JXL

Ïֽ׶ÎJAVA²Ù×÷ExcelµÄJARÖ÷ÒªÓÐapache µÄ POI¼° JXL.
ÒòΪÏÖÔÚµÄeclipse²Ù×÷excelÓõIJå¼þΪjxl£¬ËùÒÔÔÚÏîÄ¿ÖоÍʹÓÃÁËjxl£®
ÏëÏëÁ½Õ߶¼²î²»ÁËÌ«¶à£®
´Ë¼òµ¥ÏµÁÐΪÁ½¸ö²¿·Ö£¬Ò»ÊÇAPIϵÁУ¨ÔÙ¹ÙÍøhttp://www.andykhan.com/jexcelapi/download.html¿ÉÒÔÖ±½ÓÏÂÔØ£©£¬
ÁíÒ»²¿·ÖÔòÊÇÓ¦ÓÃϵÁУ®
ÔÚÕâÀïÏÈÕÒÁ˸öÀý×Ó¸ø´ó¼Ò£ ......

JavaÀíÂÛÓëʵ¼ù: Ãè»æḬ̈߳²È«ÐÔ

Java ÀíÂÛÓëʵ¼ù: Ãè»æḬ̈߳²È«ÐÔ
2007-12-15 00:10
——Ḭ̈߳²È«²»ÊÇÒ»¸ö·ÇÕæ¼´¼ÙµÄÃüÌâ
Brian Goetz (brian@quiotix.com), Ê×ϯ¹ËÎÊ, Quiotix Corp
2003 Äê 11 ÔÂ 15 ÈÕ
7Ô·ÝÎÒÃǵIJ¢·¢×¨¼Ò Brian Goetz ½« Hashtable ºÍ Vector ÀàÃèÊöΪ“ÓÐÌõ¼þḬ̈߳²È«µÄ”¡£Ò»¸öÀàÄѵÀ²»ÊÇḬ̈߳²È«¾ÍÊÇÏß³Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ