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 ½áÌû¸ø·Ö!!!
Ïà¹ØÎÊ´ð£º
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
ÎÒÊǸöÐÂÊÖ£¬×öÒ»¸öJSPÍøÒ³£¬ÎÒÒª¶Á³öÊý¾Ý¿âÕý³££¬µ«ÊÇÎÒÒªÐ޸ĵÄʱºò£¬Ò²¾ÍÊǶÁÈëµÄʱºò³öÏÖÂÒÂ룬Çë¸ßÊÖ¸æËßÎÒÔõô½â¾ö£¬ÏÈллÁË¡£
request.setCharacterEncoding("UTF-8");
°Ñ±àÂëͳһ
/**
......
rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬ËÄܸøµãÌáʾ£¿Ð»Ð»
ÄãÔõôÁ¬µÄ£¿
AccesÊý¾Ý¿â..
ÄãÔõôÁ·µÄÄØ£¿
Java code:
static String DBDRIVER = "sun.jd ......
String sqlCount="select count(*) from usertable where username='"+
userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡
Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ
select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......