Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

A plugin is needed to display this content

 
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.
 
Author and all-around good cowpoke
Posts: 13078
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:

 
Marshal
Posts: 25671
69
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.
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic