• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can't able to get applet in browser

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start reading here: http://java.sun.com/docs/books/tutorial/deployment/applet/html.html
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, i will do that thanks
 
Pay attention! Tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic