简体   繁体   English

如何将数据从applet传递到网页客户端代码?

[英]How to pass data from applet to web page client code?

How to pass data (like string) from applet to web page client code? 如何将数据(如字符串)从applet传递到网页客户端代码? that is to value parameter of a label (or asp label). 那就是标签(或asp标签)的value参数。 Is it possible to change the value of (member of tag) from applet? 可以从applet更改(标签成员)的值吗?

Is it possible to do it without javascript? 是否可以在不使用JavaScript的情况下进行操作? Thanks. 谢谢。

As I can remember, you can use the netscape lib for this. 我记得,可以为此使用netscape lib。 watch this example and this one as a conception demo... the lib helps to make Java applet and JavaScript interaction. 观看此示例 以及作为概念演示的该示例 。lib帮助实现Java applet和JavaScript交互。

Use RHINO(API by mozilla) to send the data to JS and then send it. 使用RHINO(mozilla的API)将数据发送到JS,然后再发送。

or (never tried this 1 though) create an intermediate class with a static member variable assign the data to it. 或(尽管从未尝试过使用此1)创建带有静态成员变量的中间类,然后将数据分配给它。 and use it at server side. 并在服务器端使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM