Pplet is basically useless. However, it also has some application scenarios for compatibility. For each browser, you cannot directly write the <applet> tag. Finally, consider the test for a few days. Finally, write the following code to make it more compatible with multiple browsers. I hope it will be helpful to you.
<% @ Page language = "java" import = "java. util. * "pageEncoding =" UTF-8 "contentType =" text/html; charset = UTF-8 "%> <% // This method is compatible with Firefox, IE, and Chrome browsers. // String appletClass =" cn.com. pansky. frame. cqap. printer. CQAPPrinterApplet. class "; // dependent jar package directory String appletCodebase =" applets "; String appletJar =" commons-logging-1.1.1.jar, commons-collections-2.1.1.jar, jfreechart-1.0.12.jar "; int width = 300, Height = 200; // query parameter String queryString = request. getQueryString (); if (queryString = null) {queryString = "";} queryString = "/otp/cqap/cqap-printer.servlet.jsp? "+ QueryString; %> <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <Html>