最近在做一个交易量的页面,需要用到applet.其中写了个applet的A类,和一个查数据库的B类.A类调用B类的方法获得数据显示出来的.之前研究了好久,原来applet放到前台是需要把后台的用到的类编译了,把.class文件放出来才可以.我就把编译好的A.class和B.class放到前台让页面调用前台页面调用成功,applet写的界面都出来了,但applet的控制台报错找不到spring的某个类,原来是因为B类用到了spring的东西,但我这项目不可能把spring的包也放到前台(因为还有很多类似的包也被调用了,不可能把全部都放出来的)看各位大侠是怎么解决的.或者指出我哪里做错了.对applet实在不熟啊PS:后台直接调用A类的main方法是可以运行成功了
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>
Applet</title>
</head>
<body bgcolor="pink">
下面将演示book.applet.TypingGame.<br>
<applet
codebase = "../bin/"
code = "book.applet.TypingGame.class"
name = "TypingGame"
width = "500"
height = "380"
FPS = "85"
>
</applet>
</body>
</html>