Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instance of Applet

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,

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 ?.

thanks

gurpreet

:roll:
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic