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

flexͨ¹ýHTTPServiceÓëjavaͨÐŵÄСÀý×Ó

 ÊʺϳõѧÕßÀí½â
1£¬testflex.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init()"
minWidth="955" minHeight="600">
<fx:Declarations>
<!-- ½«·Ç¿ÉÊÓÔªËØ£¨ÀýÈç·þÎñ¡¢Öµ¶ÔÏ󣩷ÅÔÚ´Ë´¦ -->
</fx:Declarations>
<fx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;

[Bindable]
private var selectResponse:String= null;
[Bindable]
private var arraylist:ArrayCollection = new ArrayCollection([
{name:"CN",data:"ÖÐÎÄ"},
{name:"US",data:"Ó¢ÎÄ"},
]);
private function init():void{
// fService.addEventListener(ResultEvent.RESULT,successhandler);
// fService.addEventListener(FaultEvent.FAULT,faulthandler);
}
private function dropdownlistChangeHandler(event:Event = null):void{
var httpservice:HTTPService = new HTTPService();
httpservice.resultFormat = "text";
httpservice.url = "http://localhost:8080/testjava/flexServlet";
httpservice.method = "POST";
var param:Object = new Object;
param.selects = select.selectedItem.data;
httpservice.send(param);
httpservice.addEventListener(ResultEvent.RESULT,successhandler);
// fService.sendRequest(select.selectedItem.data);
// Alert.show(select.selectedItem.data);
}
private function successhandler(event:ResultEvent):void{
selectResponse = event.message.body.toString();
languages.text = selectResponse;
// Alert.show(selectResponse);
}
// private function faulthandler(event:FaultEvent):void{
// selectResponse = event.message.toString();
// languages.text = selectResponse;
// }
]]-->
</fx:Script>
<s:DropD


Ïà¹ØÎĵµ£º

ÓÃjavaдµÄÒ»¸ö¶·µØÖ÷·¢ÅÆС³ÌÐò

package bag;
import java.util.*;
public class Dou {
 /*
  * Éú³ÉÆË¿ËÅÆ
  */
 public String[] puke() {
  String[] s1 = { "ºÚÌÒ", "ºìÌÒ", "÷»¨", "·½Æ¬" };
  String[] s2 = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J",
     ......

AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö

ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import
javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwing,javax.swing¼´JAVAÖеÄÒ»¸ö°ü¡£
androidÌṩһР......

ÉîÈëÀí½âJavaµÄÄÚÊ¡Óë·´Éä

ºÜ¶àÅóÓÑÔÚÉîÈëµÄ½Ó´¥JavaÓïÑÔºó¾Í»á·¢ÏÖÕâÑùÁ½¸ö´Ê£º·´ÉäºÍÄÚÊ¡£¬Ö®Ç°ÎÒÃÇÒѾ­Í¨¹ýʵÀý½âÎöÁËJavaµÄ·´Éä»úÖÆ£¬ÔÚʲô³¡ºÏÏÂÓ¦ÓÃÒÔ¼°ÈçºÎʹÓ㿽ñÌì°ÑÕâ¶þÕß·ÅÔÚÒ»Æð½éÉÜ£¬ÒòΪËüÃǶþÕßÊÇÏศÏà³ÉµÄ¡£
·´Éä
Ïà¶Ô¶øÑÔ£¬·´Éä±ÈÄÚÊ¡¸üÈÝÒ×Àí½âÒ»µã¡£ÓÃÒ»¾ä±È½Ï°×µÄ»°À´¸ÅÀ¨£¬·´Éä¾ÍÊÇÈÃÄã¿ÉÒÔͨ¹ýÃû³ÆÀ´µÃµ½¶ÔÏó(À࣬ÊôÐÔ£ ......

javaÏîÄ¿ java webÏîÄ¿Êý¾Ý¿âÂÒÂëÎÊÌâµÄ½â¾ö°ì·¨

×÷Ϊjava²ËÄñ£¬ÔÚѧϰµ½Êý¾Ý¿â²Ù×÷µÄʱºòÍùÍù»áÓöµ½Ò»¸öºÜÍ·Í´µÄÎÊÌ⣬Êý¾Ý¿âÖÐÎÄÂÒÂë¡£ÕâËƺõÊÇÿ¸öjava³ÌÐòÔ±Ôڳɳ¤¹ý³ÌÖж¼»áÓöµ½µÄÎÊÌ⣬ÏÂÃæÎҾͰÑÎÒ×Ô¼ºµÄ¼¸ÖÖ·½·¨ºÍ´ó¼Ò·ÖÏíһϡ££¨Ò»°ãÊÇÔÚMyEclipseÏ¿ª·¢£©
javaÏîÄ¿£º
Ê×ÏÈ£¬È·±£ÏîÄ¿µÄ±àÂëÊÇgbk»òutf-8(),ÔÚWindows->Preferences->General->Workplac ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ