Dear All:
I have a
java Plugin Problem. Before I was using the Java Plugin 1.3.1_01 and it works fine. However, after I switch to 1.3.1_02. It will crash the IE explorer and said the "run time error". I try to disable the 1.3.1_02 and enable the 1.3.1_01 from the control panel. However, it still fail and crash my IE. Can anyone please give me a hand.
below is the code. It work for 1.3.1_01
public void listContentApplet( Properties properties, Locale locale, OutputStream outputstream )
throws WTException {
//##begin listContentApplet%392035FF00C6.body preserve=yes
PrintWriter printwriter = getPrintWriter(outputstream, locale);
String s = properties.getProperty("style", "link");
System.out.println("ListContent APPLET");
printwriter.println(hiddenContextString("contentUpdate", "updatingContent"));
printwriter.flush();
printwriter.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" WIDTH=\"500\" HEIGHT=\"300\" Name = \"boot_jar\" >");
printwriter.println("<PARAM NAME = CODE VALUE = \"wt/boot/BootstrapApplet.class\" >");
printwriter.println("<PARAM NAME = ARCHIVE VALUE =\"wt/security/security.jar\" >");
printwriter.println("<PARAM NAME = \"codebase\" ARCHIVE VALUE =\"../../..\" >");
printwriter.println("<PARAM NAME= Name VALUE=\"wt.jar\">");
printwriter.println("<PARAM NAME=\"type\" VALUE=\"application/x-java-applet;version=1.3\">");
printwriter.println("<PARAM NAME=\"scriptable\" VALUE=\"false\">");
printwriter.println("<PARAM NAME = \"boot_class\" VALUE =\"ext.spgg.doc.kwcommondoc.ContentApplet\">");
printwriter.println("<PARAM NAME = \"cabinets\" VALUE =\"wt/security/security.cab\">");
if(locale.getLanguage() != null && !locale.getLanguage().equals(""))
printwriter.println("<PARAM NAME = \"wt.context.locale\" VALUE =\""+ locale.getLanguage()+ "\">");
printwriter.println("<PARAM NAME = \"oid\" VALUE =\""+(new ReferenceFactory()).getReferenceString((wt.fc.Persistable)getContextObj())+"\">");
if(s.equals("create")) {
printwriter.println("<PARAM NAME =\"mode\" VALUE =\"0\">");
} else if(s.equals("update")) {
printwriter.println("<PARAM NAME =\"mode\" VALUE =\"1\">");
} else { // get mode
printwriter.println("<PARAM NAME =\"mode\" VALUE =\"2\">");
}
printwriter.println("<COMMENT><EMBED type=\"application/x-java-applet;version=1.3\"");
printwriter.println("CODE=\"wt/boot/BootstrapApplet.class\"");
printwriter.println("codebase=\"../../..\"");
printwriter.println(" ARCHIVE=\"wt/security/security.jar\" boot_class=\"ext.spgg.doc.kwcommondoc.ContentApplet\"");
printwriter.println("WIDTH=\"500\" HEIGHT=\"300\" boot_jar=\"wt.jar\" cabinets=\"wt/security/security.cab\"");
printwriter.println("scriptable=\"false\" ");
if(locale.getLanguage() != null && !locale.getLanguage().equals(""))
printwriter.println("wt.context.locale=\"" + locale.getLanguage() + "\"");
printwriter.println("oid = \"" + (new ReferenceFactory()).getReferenceString((wt.fc.Persistable)getContextObj()) + "\"");
if(s.equals("create")) {
printwriter.println("mode=\"0\"");
} else if(s.equals("update")) {
printwriter.println("mode =\"1\"");
} else { // get mode
printwriter.println("mode=\"2\"");
}
printwriter.println("<NOEMBED></COMMENT></NOEMBED>");
printwriter.println("</EMBED>");
printwriter.println("</OBJECT>");
printwriter.flush();
//##end listContentApplet%392035FF00C6.body
}