title: Two Applets in same page
body: <p>I am trying to put two applets which share same code base but initialized with different paramaters in same web page.</p>
  
  <p>process goes like this:
  applet.jar->create two applet tags, with different parameters, same jar in a page->deploy to server->access the page.</p>
  
  <p>HTML looks like this:</p>
  
  <pre><code>&lt;HTML&gt; 
  &lt;HEAD&gt; 
  &lt;TITLE&gt;Java applet example - Passing applet parameters to Java applets&lt;/TITLE&gt; 
  &lt;/HEAD&gt; 
  &lt;BODY&gt; 
  &lt;APPLET CODE="Applet.class" WIDTH="400" HEIGHT="50"&gt;
      &lt;PARAM NAME="PURPOSE"    VALUE="VIEW"&gt;
  &lt;/APPLET&gt; 
  
  &lt;APPLET CODE="Applet.class" WIDTH="400" HEIGHT="50"&gt;
      &lt;PARAM NAME="PURPOSE"    VALUE="MODIFY"&gt;
  &lt;/APPLET&gt; 
  
  &lt;/BODY&gt; 
  &lt;/HTML&gt;
  </code></pre>
  
  <p>there is a panel in both applets which display messages...</p>
  
  <p>Now, the problem is messages from one applet are displaying in other one!</p>