flexµ÷ÓÃservlet
ÎÒÏëÓÃflexµ÷ÓÃservletÖеÄdoget·½·¨£¬Çë´ó¼Ò°ïæ¿´Ò»ÏÂÄÄÀïÓÐÎÊÌâ~¶àл
servlet¶Ë£º
package com.abc.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Test1 extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("ÒѾµ÷ÓÃservlet");
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
}
Flex¶Ë£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="service.send()">
<mx:HTTPService id="service"
url="http://localhost:8080/test1/com.abc.servlet/Test1.do"
method="GET" />
<mx:Script>
<!--[CDATA[
private function send():void{
//·¢ËÍÇëÇó
Ïà¹ØÎÊ´ð£º
×Ô¶¨Òå×é¼þÔÚcomponentĿ¼Ï¡£×Ô¶¨Òå×é¼þ´úÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="verti ......
×î½üÔÚ¿´¹ØÓÚflexºÍjavaÏà¹ØµÄ¶«Î÷£¬ÔÚÍøÉÏÏÂÁËЩDEMO·ÅÔÚEclipseÏÂÔËÐÐÒ²¿ÉÒÔ£¬¿É¾ÍÊÇ×Ô¼ºÐ´¸ö¼òµ¥µÄÀý×ÓÒ»²¿ÊðTomcat¾Í±¨´í£¬ºÜÊÇÓôÃÆ¡£¡£¡£
ÄÇλ´óÏÀ×ö¹ýÕâ·½ÃæµÄ¿ª·¢£¬°Ñ¿ª·¢²½Öè·ÖÏíÏ°ɣ¡£¡£¡
ÍøÉÏÏÂÔصĴó² ......
´ó¼ÒÌÖÂÛÌÖÂÛflexµÄ·´Éäµ½µ×³ÆµÄÉÏ·´ÉäÂð£¿
˵ÊÇÓз´É䣬µ«ÊÇ·´ÉäµÄÓеã¶àÓàÁË¡£¡£
APIÉÏÓÐÒ»¸öº¯ÊýµÄ˵Ã÷ÊÇÕâÑùдµÄ
describeType () º¯Êý
Éú³ÉÃèÊö ActionScript ¶ÔÏó£¨ÃüÃûΪ·½·¨µÄ²ÎÊý£©µÄ ......
ÎÊÌâÊÇÕâÑùµÄ£¬ÎÒ×Ô¼ºÐ´ÁËÒ»¸ömodelÀ࣬Ëü¼Ì³Ð×ÔEventDispatcher£¬È»ºóÔÚÖ÷mxmlÖзÅÖÃÒ»¸öbuttonºÍÒ»¸öpanel£¬ÒªÇóµã»÷buttonºó£¬ÔÚbuttonµÄÏìÓ¦º¯ÊýÖÐnew ³ömodelµÄ¶ÔÏóm£¬È»ºóÓÃm·¢ËÍMouseEvent.CLICKÏûÏ¢£¬pa ......
FlexÓà flexiframeǶÈëJSP
³öÏÖJSP ÕÚµ²×¡ FlexÌáʾ¿òÎÊÌâ
ÇëÎÊÔõô½â¾ö£¿
child ÎÒÊÔ¹ýÁËûÓá£
ËäȻǶÈëJSPµÄ¿Ø¼þÊÇFlexÀïµÄPanel±êÇ©£¬µ«ÊǸоõJspÎÞ·¨±»ÎÒ¿ØÖÆ¡£
Çó½â·¨.
¶¥Ï ϣÍû¸ßÊÖ½øÀ´½â¾öÏ ......