Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

laoding applet in struts

 
Puran Luthra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using WSAD and struts, I am trying to load an applet from a jsp (located under WebContent/image). I have used <jsp lugin> in my jsp. The applet class is in a jar file which is located under WEB-INF/lib. My jsp is unable to load applet as it give exception that applet is not found. Any thoughts!! Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All applet classes and jar files must be in a publicly accessible directory - which WEB-INF is not (no files will be served out of WEB-INF directly). Usually all files that go with an applet are kept in the same directory where the HTML or JSP file that contains the applet tag is.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!