我刚刚开始学习jsp,我遇到了从jsp运行Applet,下面的代码似乎不起作用。Applet类未找到错误
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>InfoVisual</title>
</head>
<body>
<jsp:plugin type="applet" codebase="WEB-INF/classes" code="DemoApplet.class" width="400" height="400">
<jsp:fallback>
<p>Unable to load applet</p>
</jsp:fallback>
</jsp:plugin>
<input name="btnShow" value="Show" type="submit">
</body>
</html>
我的Eclipse项目结构如下图所示
我不知道为什么我不能看到小程序的运行。 我把文件放在正确的文件夹?
感谢那条信息非常有用。 :)但是有没有其他的替代方法来运行jsp中的applet?我的意思是Eclipse IDE应该帮助我,如果我不创建它的罐子? – Roshan
强烈建议您将jar包applet类 - 它部署得更干净 – Reimeus
我做了同样的但仍然没有成功:( – Roshan