Eclipse¿ª·¢FlexºÍJ2EEµÄÅäÖÃ
eclipseÒ»¸öÏîÄ¿ÖÐͬʱ¿ª·¢flexºÍj2eeµÄ»·¾³ÅäÖÃ
ÒòΪ¹¤×÷ÐèÒª£¬Ñ§ÁËÒ»ÖÜflex½ñÌ쿪ʼÑо¿Óë·þÎñÆ÷ͨÐÅ£¬Ñ¡ÔñÁËÃâ·ÑµÄBlazeDS¡£ÓÉÓÚ֮ǰ×öÏîÄ¿ÓõÄÊÇeclipse europa£¬¾Í°Ñflex builder 3 pluginÖ±½Ó°²×°µ½ÔÓеÄeclipseÉÏÁË£¬ÕâÑùÔÙÅäÖõÄʱºò¿Í»§¶Ë±à³ÌÓõÄflexºÍ·þÎñÆ÷¶ËµÄJ2EE¾ÍÄÜÕûºÏµ½Ò»¸ö¹¤³ÌÏÂÁË£¬Ï£Íû¶ÔÓÚÔÝʱÓÉjsp±äflexÏîÄ¿µÄÈËÈÝÒ×ÊìϤºÍµ÷ÊÔ¿ª·¢»·¾³¡£
Ïà¹ØÈí¼þ¼°¹¤¾ß£º
1. Eclipse europa
2. Flex builder 3 (SDK3.3)
3. Tomcat 5.5
4. JDK 1.5
5. Blazeds-turnkey-3.2
Ç°4ÏîµÄ°²×°¾Í²»ÓýéÉÜÁË£¬Í¨¹ýeclipseµÄperformance°ÑÐèÒªµÄserverºÍjre¼°flexµÄ»·¾³²ÎÊý¶¼ÅäÖúþͿÉÒÔÁË¡£ÏÂÃ濪ʼ½øÈëflex+j2eeͬÏîÄ¿µÄ´îÅä²½Öè¡£
Ò»¡¢´´½¨WebÏîÄ¿ File->New->Project->Web->Dynamic Web Project, ¹¤³ÌÃûΪblazeDSApp£¬ÏÂÒ»²½Ö¸¶¨·þÎñÆ÷Ϊtomcat5.5£¬ÏÂÒ»²½…¾ùĬÈϵ½½áÊø£¬ÕâÑùÒ»¸öweb¹¤³Ì´´½¨ºÃÁË¡£
¶þ¡¢½âѹËõBlazeds-turnkey-3.2£¬ÌáÈ¡ÆäÖеÄblazeds.war£¬²¢½âѹµ½Ò»¸öµØ·½±ÈÈçD:\blazeds, ²¢°Ñblazeds.warÒ²·ÅÔÚͬһ¸öĿ¼ÏÂ
Èý¡¢<1>°ÑD:\blazeds\WEB-INFϵÄflexÎļþ¼Ð¸´ÖƵ½blazeDSApp¹¤³ÌµÄWebContent\WEB-INFÏÂ
<2>°ÑD:\blazeds\WEB-INFϵÄlibÎļþ¼Ð¸´ÖƵ½blazeDSApp¹¤³ÌµÄWebContent\WEB-INFÏÂ
µ½´Ë£¬blazeDSApp¹¤³ÌµÄWebContent\WEB-INFÏÂÎļþ¼ÐΪflex¡¢lib¡¢classes
×¢£ºÈç¹ûûÓÐûÓÐclassesÎļþ¼Ð˵Ã÷£¬java±àÒëºóµÄ±£´æÎļþ±»·ÅÔÚ¹¤³ÌϵÄbuildÎļþ¼ÐÏÂÁË£¬¿ÉÒÔͨ¹ýÐÞ¸ÄWebContentϵÄ.classpathÖеÄoutput£¬Èç<classpathentry kind=”output” path=”WebContent/WEB-INF/classes” />
<3>°ÑD:\blazeds\WEB-INFϵÄweb.xmlÖÐµÄ <listener/> <servlet/> <servlet-mapping/>Èý¸ö½ÚµãµÄÄÚÈݸ´ÖƵ½blazeDSApp¹¤³ÌµÄWebContent\WEB-INFϵÄweb.xmlÖÐ
ÕâÑùµ±Ç°µÄWeb¹¤³ÌÒѾ¾ßÓÐblazedsµÄ¹¦ÄÜÁË¡£
ËÄ¡¢ÏÂÃ濪ʼÕûºÏflexÏîÄ¿µ½web¹¤³ÌÖС£ÓÒ¼üµ¥»÷blazeDSApp¹¤³Ì£¬Ñ¡ÔñFlex Project Nature->Add Flex Project Nature
ÔÚµ¯³öµÄ¶Ô»°¿òÖÐÉèÖÃÏà¹Ø²ÎÊý¡£
¶Ô»°¿òµÚÒ»²½ÖУºApplication server type ÉèÖÃΪJ2EE ²¢¹´Ñ¡Use remote object access service Ö®LiveCycle Data Services
¶Ô»°¿òµÚ¶þ²½ÖУºFlex WAR file Ñ¡Ôñ¶þÖеÄD:\blazeds.war£» ²¢°ÑOutput folderµÄ·¾¶¸ÄΪWebContent
Îå¡¢ÏÂÃ濪ʼÅäÖÃflex server¡£ÓÒ¼üµ¥»÷blazeDS
Ïà¹ØÎĵµ£º
ÓÃAccordion×é¼þµÄʱºò·¢ÏÖ,childÕ¹¿ªÖ®ºóÔÙµã»÷µÄʱºòûÓÐÏàÓ¦.
È»ºóÏ°¹ßÐÔµÄGoogle·¢ÏÖ½â¾ö·½·¨´óÖÂÊÇ×Ô¶¨ÒåÒ»¸ö×é¼þ...
¸Ð¾õΪÁËÒ»¸öС¹¦ÄÜÖØдÓеã ɱ¼¦ÓÃÅ£µ¶µÄ¸Ð¾õ.
ÓÚÊÇ×ÐϸÏëÁËÏÂ,·¢ÏÖÆäʵֻÐèÒªÖ¸¶¨headerµÄitemRenderer¼´¿É:
ÉÏ´úÂë headerRenderer="com.MyAccHeader"
MyAccHeader:
package com
{
......
Flex Viewer½âÎö-----Òý
FlexViewerÊÇESRI¹«Ë¾ÀûÓÃFlex¼¼Êõ£¬»ùÓÚ±¾ÉíÒÑ¿ª·¢ºÃµÄFlex API°ü¿ª·¢µÄÒ»¸ö³ÉÊìµÄWebGISʵÀý¿ò¼Ü¡£ÆäÍêÈ«ÊÇ¿ª·ÅµÄ£¬¿ÉÒÔ´Ó¹Ù·½ÍøÕ¾ÉϵÄCode GalleryÖ±½Óϵ½Ô´Âë¡£Ò²¿ÉÒÔ´Ó±¾È˵Ä×ÊÔ´µãÏÂÔØ¡£ÍøÖ·£º
http://download.csdn.net/source/2374602
ÏÂÔØÍê³Éºó½âѹֱ½Óµ¼ÈëAdobe Flex 3 BuilderÏîÄ¿¼ ......
String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
//response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
String xml = "<user>" +
"<username>Ìθç</username>" +
"</user>";
respon ......
ת×Ô£ºhttp://hi.baidu.com/wosinmaiken/blog/item/ee59f7a8f72604bdca130c24.html
/**ceil ÏòÇ°(ÊýÖáÏòÓÒ)È¡Õû(·µ»ØֵΪNumber)**/
trace(Math.ceil(10.4)); //11
trace(Math ......
ÔÎĵØÖ·£ºhttp://blog.163.com/to_yht/blog/static/1227257742009741359326/
µ±³ÌÐò×öÍêºó£¬ÄãÊÇ·ñ»¹ÔÚΪÀÏÌ×µÄflex×é¼þĬÈÏЧ¹û·¢³î£¿ÊÇ·ñ»¹ÔÚΪÔõÑùÉèÖÃ×Ô¼ºµÄƤ·ô浡£ÄÇôÕâЩ¿ÉÄÜÊÇÄãÐèÒªµÄ¡£
Ò» ³¬¿áƤ·ôÖ÷ÌâÍƼö£º
1£® kingnarestyle:
ÏÂÔصØÖ·£ºhttp://code.google.com/p/kingnarestyle/
2£®Carbo ......