• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A plugin is needed to display this content

 
g Peshone
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I execute the file itself it works, but once I try to launch it from .jsp file I get this message: A plugin is needed to display this content. Why it would load when run directly and then in JSP asking me for some kind of plugin? Would someone have some ideas?
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is the class file stored in your web app directory layout?

Bill
 
g Peshone
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web/WEB-INF/classes/my_package/clock_class.class, running NetBeans
Thanks.
 
g Peshone
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used this setup but same problem:

 
Paul Clapham
Sheriff
Posts: 21111
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser doesn't have access to anything in your application's WEB-INF directory or its subdirectories, so putting the applet there isn't going to work. Consider the applet class to be in the same category as Javascript and CSS files, and put it in the same sort of place. Make sure that it's in the my_package directory of your web application, and modify the "code" attribute in your HTML to specify the package as part of the class name.
 
g Peshone
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul, this “clock_class.java” is compiled into a “class” file. It is where the applet is created. It is the NebBeans that puts it in the “web/WEB-INF/classes/my_package/” directory. I found “clock_class.html”:

But the jsp:plugin cannot find it in that directory.

I tried to uplink an image of the NB layout but I do not know how. What directory would this class should be?
Thanks much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic