什么意思?
把applet的信息传回到服务器端型了吧?
把applet的信息传回到服务器端型了吧?
解决方案 »
- RSA token认证-------求助
- 弱弱的问下urlrewriter的问题
- Java根据URL地址生成图片
- hibernate无法save(obj),show_sql=true但看不到insert语句
- String[] 和Array的转换
- 哪位大侠有struts-menu 权限控制的例子??
- Struts 入门 (转载自Matrix-与Java共舞)
- session內保存中文的問題(Tomcat5)
- 我快疯了,明天交活,现在还没吃饭。这边还在报错。。。。。。高手???
- 我快疯了,这几个概念怎么理解啊?!
- 问EJB高手一个问题
- 谁能给我weblogic5.1的 weblogiclicense.java 和weblogiclicenses.xml文件?
how to POST the xml dat back to the server in the applet?
thank u!
URL servlet = new URL("YourJSP.jsp");
HttpURLConnection servletConnection = (HttpURLConnection)
servlet.openConnection();
servletConnection.setRequestMethod("POST");
..............
调用javascript就可以了。
xml如何赋值呢,YourJSP.jsp如何接受这个xml呢?
<input type=hidden name=xml value="">
</form>
....
<script>
document.form[0].xml.value=document.applets[0].getXmlString(); //调用Applet的方法。
</script>
还有其他的办法码?