Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Java Plugin Problem 1.3.1_02

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.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/\">");
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(" 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/\"");
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")) {
} else if(s.equals("update")) {
printwriter.println("mode =\"1\"");
} else { // get mode
//##end listContentApplet%392035FF00C6.body
    Bookmark Topic Watch Topic
  • New Topic