Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can't able to get applet in browser

 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//WelcomeApplet.jsp

import java.applet.*;



The above one is the applet program and the below program is using the plugin to plugin the applet into the browser and i use mozilla

//index.jsp




well i compiled it i am getting the message " This is Applet plugin example"

but below that i am getting a window in which the browser is indicating to " download plugin" instead giving a " welcome" message.

so what could be the problem

i tried both line 1 and line2 but the problem persists. I am using netbeans ide 6.5 and all this i am doing in a project name "PluginAppletJSP"

I also tried by copying the WelcomeApplet.class file in webpages and run it but no use.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Is the wrong idea. Applet classes are loaded by a browser with requests to the server. The server can only serve classes from the web application directory system. Any good applet tutorial should help you on this.

Bill
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah bill, i did not realize this until you said it, and what should i do now so that this works !
thanks anyway .yeah i don't know much about applets but you know basically i am learning jsps now so i just want to experiment a bit with plugin .
 
Ulf Dittmer
Rancher
Posts: 42970
73
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, i will do that thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!