最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
类似Xmlhttp获取数据的Flex方法~
时间:2022-07-02 11:43:22 编辑:袖梨 来源:一聚教程网
通信还是用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("
out.println("");
}
}
2。mxml
resultFormat="text"
method="POST"
contentType="application/xml">
这和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">
相关文章
- 《无限暖暖》天星之羽获得位置介绍 12-20
- 《流放之路2》重铸台解锁方法介绍 12-20
- 《无限暖暖》瞄准那个亮亮的成就怎么做 12-20
- 《无限暖暖》魔气怪终结者完成方法 12-20
- 《无限暖暖》曙光毛团获得位置介绍 12-20
- 《无限暖暖》日光果获得位置介绍 12-20