Please tell I am embedding simple applet App.class (which defines only simple text field and label) in JSP file residing at tomcat server. Now, my question is when I call my jsp file my App.class file is being executed at server side or at the client side . If it is being executed at client machine then will client machine have the App.class in its memory or say cache or something in temporary internet files folder ?.
The first time your JSP is called, the sevlet container (tomcat) writes, compiles and runs a servlet which writes out your JSP to HTML, which is passed back to the client for their browser to parse and display. Your applet will be included in the page by means of an html tag. The compiled applet class is sent to the client, which caches it locally (where it does this depends on the browser), and run on the client's machine using whatever JVM the client has avaliable. Applets are never run on the server.