This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes A plugin is needed to display this content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "A plugin is needed to display this content" Watch "A plugin is needed to display this content" New topic
Author

A plugin is needed to display this content

g Peshone
Ranch Hand

Joined: Oct 20, 2008
Posts: 44
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

Joined: Mar 22, 2000
Posts: 12759
    
    5
Where is the class file stored in your web app directory layout?

Bill
g Peshone
Ranch Hand

Joined: Oct 20, 2008
Posts: 44
web/WEB-INF/classes/my_package/clock_class.class, running NetBeans
Thanks.
g Peshone
Ranch Hand

Joined: Oct 20, 2008
Posts: 44
I used this setup but same problem:

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Oct 20, 2008
Posts: 44
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A plugin is needed to display this content
 
Similar Threads
how to pass values from jsp to applet
jsp:plugin using applet & mayscript
virtualhost / webgroup not found
Firefox browser compatiblity with jsp plugin tag
Argh....all I want to do is load this applet..