<applet codebase = "." width = "400" height = "400"
name= "MyApplet" code = "test.applets.MyApplet1.class">
<script>
// js访问applet属性:document.appletName.appletField (属性必须是public的)
// js访问Applet方法:document.appletName.appletMethod (方法必须是public的)
function showLable{
// 调用test.applets.MyApplet1类的invokeByJS方法
document.applets["MyApplet"].invokeByJS('myvalue')
}
</script>
先把你的JDK弄好,看看HelloWorld是不是可以编译并显示。这是首先要完成的事情。
看提示貌似是接口的调用不成功。关闭你的防火墙试试
如果还不行,咨询那个可以正常调用朋友,写个测试类或者直接在浏览器中测试,把${}中的注入属性换成明文,看看是否可以正常返回结果。
关注一下那些${}的属性,看看是不是相关的配置文件(xml)你没有部署。