最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
类似Xmlhttp获取数据的Flex方法~
时间:2022-07-02 11:43:22 编辑:袖梨 来源:一聚教程网
YPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.***w3.org/TR/REC-html40/loose.dtd">
通信还是用httpservice
这和xmlhttp获得远端数据的方法是差不多的~
简单例子如下:
1。servlet
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("
out.println("This is my first Servlet");
out.println("
out.println("
Hello,World!
");out.println("");
}
}
2。mxml
method="POST"
contentType="application/xml">
相关文章
- 不朽箴言女娲阵容怎么搭配 女娲阵容搭配推荐 09-18
- 鸣潮珂莱塔共鸣链怎么抽 珂莱塔共鸣链抽取推荐 09-18
- 三国志异闻录高速冰冻控制流怎么玩 高速冰冻控制流玩法教学 09-18
- 鸣潮卡提希娅值得抽吗 卡提希娅抽取建议 09-18
- 忘川风华录王安石怎么培养 王安石养成攻略 09-18
- 忘川风华录唐伯虎怎么培养 唐伯虎养成攻略 09-18