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{
//发送请求
相关问答:
急招:招聘职位:JAVA/flex开发工程师(懂财务最优)
1.大专或以上学历,1年以上计算机编程或相关工作经验。
2.精通JAVA语言SERVLET开发,有JSP/J2EE项目开发经验。
......
小弟最近在做一个flex项目,需要做一个竞争力排名的图形,需要Y轴式负坐标,也就是y轴在x轴下面的那种,但所有有的例子都是Y轴为正坐标的,想请问各位是需要对哪个属性进行调整吗
<?xml version="1.0" ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import flash.external. ......
BlazeDS报错如图,谁帮看看
XML转换异常,你看看你的XML
没找到声明的元素model, 应该是xml里面写的有问题
换成blazeds-bin-4.0.0.15165版本就好了,虽然是nightly build版,但管用啊!
跟blazeds版本有 ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
......