Hi,

I still get "applet not initialized" error after I using  the 
archive="http://localhost/PluginApplet.jar"; tag in jsp:plugin. Do I have 
to setup classpath environment variable on my Windows system? What should 
I put in it?

Henry
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.         I put the class files inside PluginApplet.jar and displayed the 
jar contents as the following:
jar -xvf PluginApplet.jar
  created: META-INF/
extracted: META-INF/MANIFEST.MF
extracted: DrawingPanel.class
extracted: PluginApplet.class
extracted: TextPanel.class
extracted: WindowUtilities.class

2. I copied PluginApplet.jar into http://localhost/ and was able to access 
it form my IE browser.
3. Here is my PluginApplet.jsp

<HTML>
<HEAD><TITLE>Using jsp:plugin</TITLE><LINK REL=STYLESHEET 
HREF="JSP-Styles.css"      TYPE="text/css">
</HEAD>
<BODY><CENTER><TABLE BORDER=5>  <TR><TH CLASS="TITLE">      Using 
jsp:plugin</TABLE>
<P>
<jsp:plugin type="applet" 
            archive="http://localhost/PluginApplet.jar";
            code="PluginApplet.class"
            width="370" height="420">
</jsp:plugin>
</CENTER></BODY></HTML>


4. Here is the translated file from IE browser "View Source"

<HTML>
<HEAD>
<TITLE>Using jsp:plugin</TITLE><LINK REL=STYLESHEET HREF="JSP-Styles.css"  
   TYPE="text/css">
</HEAD>
<BODY><CENTER><TABLE BORDER=5>  <TR><TH CLASS="TITLE">      Using 
jsp:plugin</TABLE>
<P>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="370" 
height="420" 
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0";>
<PARAM name="java_code" value="PluginApplet.class">
<PARAM name="java_archive" value="http://localhost/PluginApplet.jar";>
<PARAM name="type" value="application/x-java-applet;">
<COMMENT>
<EMBED type="application/x-java-applet;" width="370" height="420" 
pluginspage="http://java.sun.com/products/plugin/"; 
java_code="PluginApplet.class" 
java_archive="http://localhost/PluginApplet.jar"/>
<NOEMBED>
</NOEMBED>
</COMMENT>
</OBJECT>

</CENTER></BODY></HTML>

Reply via email to