Servlet:
ObjectOutputStream out = new ObjectOutputStream(reponse.getOutputstream());
out.writeObject(//Your ResultSet);
out.flush;
out.close;
Applet:
//打开连接
ResultSet res = null;
ObjectInputStream in = new ObjectInputStream(urlconnection.getInputstream());
res = (ResultSet) in.readObject();
ObjectOutputStream out = new ObjectOutputStream(reponse.getOutputstream());
out.writeObject(//Your ResultSet);
out.flush;
out.close;
Applet:
//打开连接
ResultSet res = null;
ObjectInputStream in = new ObjectInputStream(urlconnection.getInputstream());
res = (ResultSet) in.readObject();
拼字符串吧,
可以试试Vector,事先声明我没试过
楼上的意思是不是将结果放在Vector里,将Vector序列化,然后是不是通过Socket传入Applet?
传到APplet里没用