FLEXʹÓÃjavaÁ¬½ÓÊý¾Ý¿â,Éú³ÉtreeÊ÷
×î½ü¼¸Ìì,Ò»Ö±ÔÚÑо¿flex,˵¾äʵÔÚµÄ,ÆäÖеĿàÄÕ²»ÊÇÒ»¾ä»°Á½¾ä»°ÄÜ˵Çå³þµÄ.ûÓнӴ¥¹ý°¡!²»¹ýÏÖÔÚ×ÜËãÊÇ°ÑÊý¾Ý¿âÁ¬ÉÏÁË,×ö³öÁË×Ô¼ºÏëÒªµÄ¶«Î÷.·Ï»°ÉÙ˵,ÏÖÔÚÄØ,ÎҾͰÑÎÒ×öµÄ´úÂëÌù³öÀ´,¸ø´ó¼Ò¿´¿´,¶àÌᱦ¹óÒâ¼û.
ÎÒÓõÄÊÇjdbcµÄÁ¬½Ó·½Ê½(hibernateµÄÁ¬½Ó·½Ê½ÎÒ¿´ÍøÉÏÓÐ,ËùÒԾͲ»Ìù³öÀ´ÁË)
1.flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="begin()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import flash.events.MouseEvent;
import mx.controls.*;
public function begin():void{
getitem.Toxml();
}
[Bindable]
public var selectedNode:XML;
[Bindable]
public var XMLData:XMLList;
private function resultHandler(event:ResultEvent):void{
//textarea.text=event.result.toString();
XMLData = new XMLList(event.result.toString());
myTree.dataProvider = XMLData.folder;
}
public function DealFault(event:FaultEvent):void{
Alert.show(event.fault.toString());
trace(event.fault);
}
]]>
</mx:Script>
<mx:RemoteObject id="getitem" destination="getItem" showBusyCursor="true" endpoint="http://localhost:8080/firstFlex/messagebroker/amf/" fault="DealFault(event)" result="resultHandler(event)"/>
<mx:Tree id="myTree" labelField="@label" width="100%" height="100%"/>
</mx:Application>
ÔÚÕâÀïҪעÒâ,<mx:RemoteObject >Õâ¸ö±êÇ©,ÊÇÓÃÀ´Á¬½ÓÊý¾Ý¿âµÄ,ûÓÐËü¾Í²»¿ÉÄÜÁ¬ÉÏ.»¹ÓбêÇ©ÀïÃæµÄendpointÕâ¸öÊôÐÔ,ÊDZز»¿ÉÉÙµÄ,ËüµÄÖµÀ¶É«¼Ó´ÖµÄ²¿·ÖΪÏîÄ¿Ãû³Æ,»ÆÉ«¼Ó´ÖµÄ²¿·ÖÊÇÔÚÏîÄ¿web.xmlÖеÄ
<servlet-mapping>
<servlet-name>MessageBroke
Ïà¹ØÎĵµ£º
ÐèÇóÈçÏ£º
µ±AIRÆô¶¯ºó£¬¼àÌýÈ«¾Ö¼üÅÌʼþ£¬¼´this.addEventListener( KeyboardEvent.KEY_DOWN, keydownHandler );
ÔËÐкóЧ¹û£º
µ±AIRÔËÐкó£¬ËäÈ»ÕýÈ·¼àÌýÁËKeyboardEvent.KEY_DOWN event£¬µ«ÊDZØÐëÒªÊó±êµã»÷Ò»ÏÂAIR²Å¿ÉÒÔ»ñÈ¡keydownHandler¡£
ÔÒò£º
1¡¢keydownHandlerµÄ»ñÈ¡ÐèÒª¼àÌýµÄ¶ÔÏó»ñµÃ½¹µã£¬µ±mouse cl ......
Adobe Flex¿ª·¢Ó봫ͳµÄWeb¿ª·¢Óкܶ಻֮ͬ´¦¡£ÕýÈ·µÄÀí½âºÍÀûÓÃÕâЩ²»Í¬Ö®´¦£¬¿ÉÒÔ°ïÖúÎÒÃÇ´´½¨¸ü·á¸»µÄÓû§ÌåÑ飬Ҳ¿ÉÒÔ·´¹ýÀ´Ôö¼ÓÍøÕ¾µÄ¿ÉÓÃÐÔÒÔ¼°ä¯ÀÀºÍ¸üÐÂËٶȡ£Flex»¹ÌṩÁË´óÁ¿µÄ×é¼þºÍ¼¼Êõ¿âÀ´ÈÃWeb¿ª·¢¸ü¼ÓÇáËÉ——ËüÌṩµÄÇ¿´ó¹¤¾ßÒªÔ¶Ô¶³¬¹ý´«Í³Web 2.0ÖеÄÒì²½JavaScriptºÍXML£¨Ajax£©Ó¦ÓᣴËÍ⣬ ......
×î½üµÄDevoxx´ó»áÉÏ£¬Java 7½«°üº¬±Õ°üµÄÏûÏ¢ÁîºÜ¶àÈ˸е½Õñ·Ü——Õ⽫×öΪһ¸ö¶ÀÁ¢µÄJSR±»ÊµÏÖ¡£ÔÚÖÚ¶àJava 7еÄÓïÑÔÌØÐÔÖУ¬ÓÐһЩÏÖÔÚÒѾÍê³ÉÁË¡£Devoxx´ó»áµÄһλ²Î»áÕßÔÚ²©¿ÍÖб¨¸æÁËÏÂÃæÕâЩJava 7ÒѾÍê³ÉµÄ7´óй¦ÄÜ£º
1£©¶Ô¼¯ºÏÀàµÄÓïÑÔÖ§³Ö£»
2£©×Ô¶¯×ÊÔ´¹ÜÀí£»
3£©¸Ä½øµÄͨÓÃʵÀý´´½¨ÀàÐÍÍ ......
Java
Á÷²Ù×÷
¶ÔÓÚÎÒÃdz£ÓõÄGBKÖУ¬Ó¢ÎÄÊÇÕ¼ÓÃ1¸ö×Ö½Ú£¬ÖÐÎÄÊÇ2¸ö
¶ÔÓÚUTF-8£¬Ó¢ÎÄÊÇ1¸ö£¬ÖÐÎÄÊÇ3¸ö
¶ÔÓÚUnicode£¬Ó¢ÎÄÖÐÎĶ¼ÊÇ2¸ö
Java
µÄÁ÷²Ù×÷·ÖΪ×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷Á½ÖÖ¡£
1¡¢
×Ö½ÚÁ÷
ËùÓеĶÁ²Ù×÷¶¼¼Ì³Ð×ÔÒ»¸ö¹«¹²³¬Àà
java
.io.InputStream
Àà¡£
ËùÓеÄд²Ù×÷¶¼¼Ì³Ð×ÔÒ ......
¾¡¹ÜÔƼÆËãÕâÒ»ÊõÓï²¢²»ÐÂÏÊ(AmazonÔÚ2006Äê¾Í¿ªÊ¼ÌṩËüµÄÔÆ·þÎñ)£¬µ«´Ó2008ÄêÆðËü²Å¿ªÊ¼ÕæÕý³ÉΪÁ÷Ðдʣ¬ÕâÆڼ䣬GoogleºÍ
AmazonµÄÔÆ·þÎñÖð½¥»ñµÃÁ˹«ÖڵĹØ×¢¡£ GoogleµÄApp EngineʹÓû§Äܹ»ÔÚGoogle»ù´¡ÉèÊ©ÉϹ¹½¨ºÍÍÐ¹Ü Web Ó¦ÓóÌÐò¡£
¡¡¡¡Á¬Í¬S3£¬AmazonWeb Services»¹°üÀ¨Elastic Cloud Compute
(EC2) ......