????????flex4??Java?????????????
????flex?????java?????RemoteObject??
????flex???????????HTTPService??
????flex??webservice????WebService??
???????????????flex?????java?????????????RemoteObject????????????????£?
????package com.flex.demo;
/**
*?????  ????????:???????????flex?????java???е???????
* @author Administrator
*/
//????????????????????????д??
<!--flex ?????java?????-->
<s:RemoteObject id=“serv“ destination=“myservice“ fault=“serv_faultHandler(event)“ result=“serv_resultHandler(event)“>
<properties>
<source>com.flex.demo.SimpleService</source>
</properties>
</s:RemoteObject>
[js] view plaincopy
<!--flex ???????????HTTPService-->
<!--servlet????-->
/**
* ?????  ????????:??servlet??????flex???н???
* @author Administrator
*/
@SuppressWarnings(“serial“)
public class SimpleServiceServlet extends HttpServlet {
@Override
protected void service(HttpServletRequest request?? HttpServletResponse response) throws ServletException?? IOException {
request.setCharacterEncoding(“utf-8“);
response.setCharacterEncoding(“utf-8“);
response.getWriter().write(“?????????“);
}
}