flex+ssh整合 Flex怎么读取Action里面的方法 返回List 在Flex里面怎么调用?
Action方法publicKcMember[]getMemberList(){Listlist=Memberdao.findAdvBroker(20,1);KcMemb...
Action方法
public KcMember[] getMemberList(){
List list = Memberdao.findAdvBroker(20,1);
KcMember[] memArr = new KcMember[list.size()];
for(int i=0;i<list.size();i++){
memArr[i] = (KcMember)list.get(i);
}
return memArr;
}
remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="MemberAction">
<properties>
<source>com.test.member.MemberAction</source>
</properties>
</destination>
</service> 展开
public KcMember[] getMemberList(){
List list = Memberdao.findAdvBroker(20,1);
KcMember[] memArr = new KcMember[list.size()];
for(int i=0;i<list.size();i++){
memArr[i] = (KcMember)list.get(i);
}
return memArr;
}
remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="MemberAction">
<properties>
<source>com.test.member.MemberAction</source>
</properties>
</destination>
</service> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询