wood burning stoves*
The moose likes JSP and the fly likes Instance of Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Instance of Applet" Watch "Instance of Applet" New topic
Author

Instance of Applet

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instance of Applet