ajax ·¢ËÍxmlÎļþ£¬java½ÓÊÜxmlÎļþ²¢½âÎö
ºìÉ«×ÖÌåΪÖ÷Òª´úÂë
jspÒ³ÃæÖÐ
<script language="javascript">
function updateDB(operate){
var objDom=new ActiveXObject("msxml.DomDocument");
var objRoot=objDom.createElement("All");
objDom.appendChild(objRoot);
var k=document.getElementsByName("check"); //Ñ¡Ôñ¿ò
for(var i=0;i<k.length;i++){
if(k[i].checked){ //½«Ñ¡ÔñµÄÊý¾Ý×éºÏ³Éxml¸ñʽµÄÊý¾Ý
var currentRow=k[i].parentNode.parentNode;
var obj=objDom.createElement("Good");
objRoot.appendChild(obj);
var objNode=objDom.createElement("xl_id");
objNode.text=k[i].value;
obj.appendChild(objNode);
objNode=objDom.createElement("xqnum");
objNode.text=currentRow.cells[5].childNodes[0].value;
obj.appendChild(objNode);
objNode=objDom.createElement("desc");
objNode.text=currentRow.cells[7].childNodes[0].value;
obj.appendChild(objNode);
}
}
ajaxSendPost("qgApplyAction.do?method="+operate.name,objDom,null);//×Ô¼º·â×°µÄajaxÇëÇó µÚÒ»¸ö²ÎÊýΪurl,µÚ¶þ¸öΪ´«ËͲÎÊý£¬µÚÈý¸öÊǻص÷º¯Êý
}
</script>
ºǫ́action.java´úÂë½ÓÊÕxmlÎļþ ´úÂëÈçÏÂ
ÒýÈëµÄ°üÈçÏÂ
import org.w
Ïà¹ØÎĵµ£º
×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......
¡¡¡¡×î½üÔÚ¿ª·¢¹ý³ÌÖз¢ÏÖÒ»¸öÎÊÌ⣺BooleanÀàÐ͵ÄÖµÎÞ·¨ÔÚflexºÍjava¼ä´«µÝ£¬¾¹ýÒ»¶ÎÑо¿·¢ÏÖ£¬ÎÊÌâ³öÏÖÔÚBooleanÀàÐ͵ÄgetterºÍsetter·½·¨ÉÏ¡£
°´ÕÕjavabeanµÄ¹æ·¶£¬Ð¡²¼¶ûÀàÐ͵ÄgetterÊÇÒÔis×öǰ׺µÄ£¬µ«ÊÇ´ó²¼¶ûÀàÐ͵Ägetter¾Í³ÉÁËÒÔgetΪǰ׺ÁË£¨´ó²¼¶û×÷ΪÒýÓÃÀàÐÍ£¬ÒѾ±»ÊÓΪÆÕͨ ......
¿´»ðÁú¹ûдÁËÒ»¸öÑéÖ¤ÈÕÆÚµÄJavaÕýÔò±í´ïʽ£¬¾Í¸ø×ªÁ˹ýÀ´
ÓÉÓÚʹÓõ½ÁË·´ÏòÔ¤ËÑË÷ģʽ“(?<=)”ºÍ“(?<!)”£¬ËùÒÔÕâ¸öÖ»ÄÜÔÚ Java ÖÐʹÓ㬲»ÄÜÔÚ JavaScript ÖÐʹÓã¬JavaScript ²»Ö§³Ö·´ÏòÔ¤ËÑË÷¡£Ö§³Ö yyyy-MM-dd¡¢yyy-MM-dd¡¢yy-MM-dd ºÍ y-MM-dd£¬¼´Äê·ÝΪ 1¡«4 ......
¶ÔListµÄ±éÀúÓÐÈýÖÖ·½Ê½
List<A> list = new ArrayList<A>();
list.add(new A());
list.add(new & ......
ºÜ¶àÍøÓÑÎÊÎÒѧϰJavaÓÐûÓÐʲô½Ý¾¶,ÎÒ˵“ÎÞËû£¬Î¨ÊÖÊì¶û”¡£µ«ÊÇÎÒÈ´ºÜÔ¸Ò⽫×Ô¼ºÑ§Ï°µÄһЩ¾Ñéд³öÀ´£¬ÒÔ±ãºóÀ´ÕßÉÙ×ßÍä·,°ïÖú±ðÈËÊÇ×î´óµÄ¿ìÀÖÂ
¡¡¡¡ÒªÏëѧºÃJava£¬Ê×ÏÈÒªÖªµÀJavaµÄ´óÖ·ÖÀà¡£ÎÒÃÇÖªµÀ£¬×Ô´ÓSunÍÆ³öJavaÒÔÀ´£¬¾ÍÁ¦Í¼Ê¹Ö®ÎÞËù²»°ü£¬ËùÒÔJava·¢Õ¹µ½ÏÖÔÚ£¬°´Ó¦ÓÃÀ´·ÖÖ÷Òª·ÖÎ ......