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

flexµ÷ÓÃJavaÀà

ÎÒÓÐÒ»¸ödashboard.mxmlÎļþµ÷ÓÃÁËÒ»¸öJavaÀàµÄgetNextValueµÄ·½·¨£¬´ÓÊý¾Ý¿âÖлñÈ¡Êý¾Ý¡£
ÎÒµÄ×ö·¨ÊÇ°ÑÕâЩÊý¾ÝÔÙ·â×°³ÉÒ»¸öJavaÀࣺRecord.java¡£µ±µ÷ÓÃgetNextValue·½·¨Ê±£¬·µ»ØRecordµÄ¶ÔÏó¡£ÏÖÔÚÕâ¸ödashboard.mxmlÎļþÐèÒªÓõ½ÕâЩÊý¾Ý¡£ÎÒ²»ÖªµÀÓ¦¸ÃÔõô»ñÈ¡¡£Çë½Ì¸÷λ¸ßÊÖ¡£Ö¸µãһϡ£¡£¡£

<mx:RemoteObject id="flexServiceRO" destination="flexService"> 
  <mx:method name="queryAll" result="handleQueryAll(result : ResultEvent)"/> 
</mx:RemoteObject> 


½«µ÷ÓÃjava·½·¨·µ»ØµÄ½á¹û¼¶×ª»¯³Éflex¿ÉÒÔ²Ù×÷µÄÀàÐÍ 
ÕâÀïÖ»½éÉܼ¸ÖÖ³£Óõģ¬ÏêϸÇë²é¿´Ïà¹ØÎĵµ¡£

//Õâ¾ä»°µÄÒâ˼Êǵ÷ÓÃjava·µ»Ø¶ÔÏóת»¯³ÉflexµÄobjectÀàÐÍ
dataObject=event.result as Object;
//½ÓÊÕµ½·µ»ØµÄ¶ÔÏ󣬿ÉÒÔ»ñµÃ¶ÔÏóµÄÏà¹ØÊôÐÔ¡£
flag=dataObject.hjcz;

//µ÷ÓÃjava ·µ»ØµÄlist¶ÔÏóת³ÉflexµÄ
var arr:Object=event.result as Object;objectÀàÐÍ
for(i=0;i<arr.length;i++)//ÓÃÒ»¸öÑ­»·±éÀúobject´æ´¢µÄ¶ÔÏó 
{
  arr[i].message;//µ½ÁËÕâÒ»²½¾Í¿ÉÒÔÖ±½Ó·ÃÎʶÔÏóµÄÊôÐÔÁË
}



Ç°ÌáÊÇÓõÄÊÇblazedsÓëjava½»»¥..  

ÓñðµÄ·½Ê½ÎÒ»¹Ã»ÊÔ¹ý,ÒòΪÎÒÃǽ»»¥¶¼ÊÇÓÃblazedsµÄ..!!!

LZ ½áÌû¸ø·Ö!!!


Ïà¹ØÎÊ´ð£º

JAVAµç×Ӵʵ䣿 - Java / Java SE

¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£


´Ê¿âÔõôÉú³ÉÄØ£¿

²»»á¡£

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ

ÓÃmap ¼üÖµ¶ÔÓ¦

Èç¹ûÓÃÊý¾Ý¿ ......

java xmlÎÄÌâ - Java / Java SE

<?xml version="1.0" encoding="utf-8" ?> 
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......

JSP¶ÁÈëÊý¾Ý¿â - Java / Java EE

ÎÒÊǸöÐÂÊÖ£¬×öÒ»¸öJSPÍøÒ³£¬ÎÒÒª¶Á³öÊý¾Ý¿âÕý³££¬µ«ÊÇÎÒÒªÐ޸ĵÄʱºò£¬Ò²¾ÍÊǶÁÈëµÄʱºò³öÏÖÂÒÂ룬Çë¸ßÊÖ¸æËßÎÒÔõô½â¾ö£¬ÏÈллÁË¡£
request.setCharacterEncoding("UTF-8");

°Ñ±àÂëͳһ

/**
......

linux²»ÄÜ·ÃÎÊaccess - Java / Java EE

rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬Ë­ÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿

AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿

Java code:

static String DBDRIVER = "sun.jd ......

mysqlÎÊÌ⣡ - Java / Java SE

String sqlCount="select count(*) from usertable where username='"+
userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡
Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ
select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ