一个关于在html中调用applet的小问题?就是不知是什么原因!!

松耦合紧内聚 2002-02-05 02:48:42
jb6作了一个applet,可以在jb下运行
在服务器:resin1.3下浏览器提示:load:class textview.player not found
为了在服务器下运行我把player.html中:codebase改为如下(原来为codebase=".")
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>
HTML Test Page
</title>
</head>
<body>
textview.player will appear below in a Java enabled browser.<br>
<applet
codebase = "http://127.0.0.1:8080/classes/textview/player.class"
code="textviwe.player.class"
name = "TestApplet"
width = "500"
height = "600"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
codebase和code有什么区别?我这样设置对吗?应该如何设置?谢谢了.
...全文
35 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
karma 2002-02-05
  • 打赏
  • 举报
回复
codebase is the directory, code is the class name

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧