Communication or HTTPService
This is similar to how XMLHTTP gets far data is almost ~
The simple example is as follows:
1. servletimport 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 (" Title> head> ); out.println ("
hello, world! h1> "); Out.println (" body> html > ");
}
2. MXML XML Version = "1.0" encoding = "GB2312"?> mx: httpservice>
mx: Application>
Get the results: This topic includes attachments: sf_200411494613.jpg (11311bytes)