How to use processing sketch in a web app
<p>Good day, i have a Processing sketch that i want to use in a web application
i am using jsp and servlets in my web app with tomcat as a server. I am using netbeans and i tried using &lt; applet > tag but i can't get it to work, please help.</p>

<p>CODE:</p>

<p>import processing.core.*;</p>

<pre><code>public class MyProcessingSketch extends PApplet {
  public static void main(String args[]) {
    PApplet.main(new String[] {  "MyProcessingSketch" });
  }

  public void setup() {


  }
@Override 
  public void draw() {
   background (200,0,0);
  }

  public void settings(){
       size(600,240);
  }


  public void mousePressed(){
            exit(); 
        }

}
</code></pre>