Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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:

 
Sheriff
Posts: 27224
87
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic