将数据传给JAVA处理.
FLEX:
[Bindable] public var ary1:Array=[];
private function init():void{
ary1.push('黄晓华');
ary1.push('黄晓华');
ary1.push('黄晓华');
remoteObject.tt(ary1)
}
private function resultHandler ( event:ResultEvent ) :void
{
// 显示收到的 " Hello World! " 数据
Alert.show ( event.result.toString (), " 提示 " );
}
private function faultHandler ( event:FaultEvent ) :void
{
Alert.show ( event.fault.toString (), " 提示 " );
}
<mx:RemoteObject id ="remoteObject" destination ="helloWorld"
source = "news.HelloWorld" result ="resultHandler(event)"
fault="faultHandler(event)" />
JAVA:
public String tt(String[] b) {
//String[] b={"a","b","c"};
&
相关文档:
一、.net Server端
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.Services.Description;
namespace WebApplica ......
MyEclipse设置JSP页面默认编码方式:
windows(窗口)-Preferences(首选项)-MyEclipse-Files & Editors-JSP-右侧encoding:设置为ISO10646/Unicode(UTF-8)
MyEclipse在Java文件中设置作者、日期等说明:
windows(窗口)-Preferences(首选项)-Java-Code Style(代码样式)-Code Templates(代码模版)-右侧Comments(注释)- ......
线程(Thread)方面:
1、java中有几种方法可以实现一个线程?用什么关键字修饰同步方法? stop()和suspend()方法为何不推荐使用?
答:有两种实现方法,分别是继承Thread类与实现Runnable接口
用synchronized关键字修饰同步方法
反对使用stop(),是因为它不安全。它会解除由线程获取的所有锁定, ......
今天领导吩咐一个任务,就是用.net技术去跳用java端写的webservers,而且要采用https访问方式,强制论证
String SecurelyStoredPassword = "adminsd";
&nb ......