• 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

A plugin is needed to display this content

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used this setup but same problem:

 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Hold that thought. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic