applet类:package servlet;
public class applet {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("测试成功");
System.out.println("测试");
}
}
jsp:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!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=utf-8">
<title>Insert title here</title>
</head>
<body>
<jsp:plugin code="applet.class" codebase="servlet" type="applet"></jsp:plugin>
</body>
</html>
添加回答
举报
0/150
提交
取消