Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 在Flexbuilder 3中将参数传递给HttpService_Apache Flex_Jsp_Flexbuilder - Fatal编程技术网

Apache flex 在Flexbuilder 3中将参数传递给HttpService

Apache flex 在Flexbuilder 3中将参数传递给HttpService,apache-flex,jsp,flexbuilder,Apache Flex,Jsp,Flexbuilder,我遇到了一个问题,需要将组合框的选定项作为参数传递给HttpService。有人能告诉我怎么做吗。请尝试下面的代码 params["serviceParamName"] = comboBox.selectedItem; httpServ.send(params); <mx:HTTPService id="httpServ"> <mx:resultFormat>flashvars</mx:resultFormat> <mx:url>

我遇到了一个问题,需要将组合框的选定项作为参数传递给HttpService。有人能告诉我怎么做吗。

请尝试下面的代码

params["serviceParamName"] = comboBox.selectedItem;
httpServ.send(params);

<mx:HTTPService id="httpServ">
    <mx:resultFormat>flashvars</mx:resultFormat>
    <mx:url>http://www.adobe.com</mx:url>
    <mx:result>combo.selectedItem=httpServ.lastResult.message</mx:result>
    <mx:fault>Alert.show(event.toString(), event.type);</mx:fault>
</mx:HTTPService>
params[“serviceParamName”]=comboBox.selectedItem;
httpServ.send(参数);
闪光灯
http://www.adobe.com
combo.selectedItem=httpServ.lastResult.message
显示(event.toString(),event.type);