although pplet is basically useless. However, it also has some application scenarios for compatibility. For each browser, you cannot directly write the 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>